version 1.1.2.7, 2007/01/17 18:48:53
|
version 1.2, 2007/05/25 18:35:07
|
|
|
char prefixedFormat[EXECUTOR_BUFFER_SIZE]; | char prefixedFormat[EXECUTOR_BUFFER_SIZE]; |
char lineStr[32]; | char lineStr[32]; |
| |
|
#ifdef PEGASUS_DEBUG |
/* Prepend "__FILE__(__LINE__): FATAL: " to format. */ | /* Prepend "__FILE__(__LINE__): FATAL: " to format. */ |
| |
Strlcpy(prefixedFormat, file, sizeof(prefixedFormat)); | Strlcpy(prefixedFormat, file, sizeof(prefixedFormat)); |
|
|
sprintf(lineStr, "%u", (unsigned int)line); | sprintf(lineStr, "%u", (unsigned int)line); |
Strlcat(prefixedFormat, lineStr, sizeof(prefixedFormat)); | Strlcat(prefixedFormat, lineStr, sizeof(prefixedFormat)); |
Strlcat(prefixedFormat, "): FATAL: ", sizeof(prefixedFormat)); | Strlcat(prefixedFormat, "): FATAL: ", sizeof(prefixedFormat)); |
|
#endif |
|
|
Strlcat(prefixedFormat, format, sizeof(prefixedFormat)); | Strlcat(prefixedFormat, format, sizeof(prefixedFormat)); |
| |
/* Print to syslog. */ | /* Print to syslog. */ |