syslogd: minor, improve flog() internal logging a bit
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
parent
eed3335caa
commit
75524d1878
@ -2027,7 +2027,7 @@ void flog(int pri, char *fmt, ...)
|
|||||||
(void)vsnprintf(buf, sizeof(buf), fmt, ap);
|
(void)vsnprintf(buf, sizeof(buf), fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
logit("%s\n", buf);
|
logit("flog<%d>: %s\n", pri, buf);
|
||||||
|
|
||||||
(void)snprintf(proc_id, sizeof(proc_id), "%d", getpid());
|
(void)snprintf(proc_id, sizeof(proc_id), "%d", getpid());
|
||||||
memset(&buffer, 0, sizeof(buffer));
|
memset(&buffer, 0, sizeof(buffer));
|
||||||
|
Loading…
Reference in New Issue
Block a user