drivers/syslog/vsyslog.c: Fix a printf format warning
This commit is contained in:
parent
56a79d7248
commit
f8d6a85f90
@ -132,8 +132,8 @@ int nx_vsyslog(int priority, FAR const IPTR char *fmt, FAR va_list *ap)
|
|||||||
#if defined(CONFIG_SYSLOG_TIMESTAMP)
|
#if defined(CONFIG_SYSLOG_TIMESTAMP)
|
||||||
/* Pre-pend the message with the current time, if available */
|
/* Pre-pend the message with the current time, if available */
|
||||||
|
|
||||||
ret = lib_sprintf(&stream.public, "[%5d.%06d] ",
|
ret = lib_sprintf(&stream.public, "[%5jd.%06ld] ",
|
||||||
ts.tv_sec, ts.tv_nsec / 1000);
|
(uintmax_t)ts.tv_sec, ts.tv_nsec / 1000);
|
||||||
#else
|
#else
|
||||||
ret = 0;
|
ret = 0;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user