Differences From Artifact [6307d2f89c]:
- File cackey.c — part of check-in [402217513a] at 2013-01-15 14:11:52 on branch trunk — Updated debugging messages to be written in a single fprintf() call in an attempt to avoid having them intermingled when written from multiple threads (user: rkeene, size: 186267) [annotate] [blame] [check-ins using]
To Artifact [5df163c7aa]:
- File cackey.c — part of check-in [0e0490e060] at 2013-01-18 15:11:02 on branch trunk — Added support for compiling in a default debug log file (user: rkeene, size: 186364) [annotate] [blame] [check-ins using]
| ︙ | |||
244 245 246 247 248 249 250 251 252 253 254 255 256 257 | 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 | + + + + + + |
logfile = strchr(logfile, '=');
if (logfile == NULL) {
logfile = getenv("CACKEY_DEBUG_LOGFILE");
} else {
logfile++;
}
}
#ifdef CACKEY_DEBUG_LOGFILE
if (logfile == NULL) {
logfile = CACKEY_DEBUG_LOGFILE;
}
#endif
if (logfile != NULL) {
CACKEY_DEBUG_PRINTF("Found log file: %s", logfile);
fd = fopen(logfile, "a");
}
|
| ︙ |