log.c: fix format string args
This commit is contained in:
parent
cc0a7eb9a2
commit
f7c616d2b9
@ -179,9 +179,9 @@ void log_message (int level, const char *fmt, ...)
|
|||||||
strftime (time_string, TIME_LENGTH, "%b %d %H:%M:%S",
|
strftime (time_string, TIME_LENGTH, "%b %d %H:%M:%S",
|
||||||
localtime (&nowtime.tv_sec));
|
localtime (&nowtime.tv_sec));
|
||||||
|
|
||||||
snprintf (str, STRING_LENGTH, "%-9s %s.%03u [%ld]: ",
|
snprintf (str, STRING_LENGTH, "%-9s %s.%03lu [%ld]: ",
|
||||||
syslog_level[level], time_string,
|
syslog_level[level], time_string,
|
||||||
nowtime.tv_nsec/1000000u,
|
(unsigned long) nowtime.tv_nsec/1000000ul,
|
||||||
(long int) getpid ());
|
(long int) getpid ());
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user