commit - 9b7f22a6148eb14af6e59de120bb5b1dd0e05469
commit + 6b5e61245844733fe2df78892399d5956f422311
blob - ee4438ac0458a156488cc7febe21debb181f25a7
blob + 5bb8770f6058679e049a234c6d8b4492640cfd7e
--- gotd/log.c
+++ gotd/log.c
if (debug) {
/* best effort in out of mem situations */
- if (asprintf(&nfmt, "%s\n", fmt) == -1) {
+ if (asprintf(&nfmt, "%s: %s\n", log_procname, fmt) == -1) {
vfprintf(stderr, fmt, ap);
fprintf(stderr, "\n");
} else {
sep = "";
}
if (code)
- logit(LOG_CRIT, "%s: %s%s%s",
- log_procname, s, sep, strerror(code));
+ logit(LOG_CRIT, "%s: %s%s", s, sep, strerror(code));
else
- logit(LOG_CRIT, "%s%s%s", log_procname, sep, s);
+ logit(LOG_CRIT, "%s%s", sep, s);
}
void