diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2020-10-19 20:07:46 +0100 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2020-10-19 20:08:31 +0100 |
commit | f7c616d2b95b807b0a4d1e1cb4b10421e135c785 (patch) | |
tree | 798bb2513f8166eb94886468c686e95429fad529 | |
parent | cc0a7eb9a2846116630c1c2aa445597f2b9b2369 (diff) |
log.c: fix format string args
-rw-r--r-- | src/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -179,9 +179,9 @@ void log_message (int level, const char *fmt, ...) strftime (time_string, TIME_LENGTH, "%b %d %H:%M:%S", 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, - nowtime.tv_nsec/1000000u, + (unsigned long) nowtime.tv_nsec/1000000ul, (long int) getpid ()); /* |