pjdlog.c (524840d8d073477be6446924079367a5826883cb) pjdlog.c (4767ee29f149c9a34379763e7b537ee821639b3a)
1/*-
2 * Copyright (c) 2009-2010 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Pawel Jakub Dawidek under sponsorship from
6 * the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 203 unchanged lines hidden (view full) ---

212 if (loglevel == LOG_DEBUG)
213 fprintf(out, "[%d]", debuglevel);
214 fprintf(out, " ");
215 fprintf(out, "%s", pjdlog_prefix);
216 vfprintf(out, fmt, ap);
217 if (error != -1)
218 fprintf(out, ": %s.", strerror(error));
219 fprintf(out, "\n");
1/*-
2 * Copyright (c) 2009-2010 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Pawel Jakub Dawidek under sponsorship from
6 * the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 203 unchanged lines hidden (view full) ---

212 if (loglevel == LOG_DEBUG)
213 fprintf(out, "[%d]", debuglevel);
214 fprintf(out, " ");
215 fprintf(out, "%s", pjdlog_prefix);
216 vfprintf(out, fmt, ap);
217 if (error != -1)
218 fprintf(out, ": %s.", strerror(error));
219 fprintf(out, "\n");
220 fflush(out);
220 break;
221 }
222 case PJDLOG_MODE_SYSLOG:
223 {
224 char log[1024];
225 int len;
226
227 len = snprintf(log, sizeof(log), "%s", pjdlog_prefix);

--- 160 unchanged lines hidden ---
221 break;
222 }
223 case PJDLOG_MODE_SYSLOG:
224 {
225 char log[1024];
226 int len;
227
228 len = snprintf(log, sizeof(log), "%s", pjdlog_prefix);

--- 160 unchanged lines hidden ---