portability dont assume size of tv.t_usec
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
6304686509
commit
eff73742bc
1 changed files with 2 additions and 2 deletions
|
@ -2508,8 +2508,8 @@ void _lws_log(int filter, const char *format, ...)
|
|||
|
||||
for (n = 0; n < LLL_COUNT; n++)
|
||||
if (filter == (1 << n)) {
|
||||
pos = sprintf(buf, "[%ld:%04ld] %s: ", tv.tv_sec,
|
||||
tv.tv_usec / 100, log_level_names[n]);
|
||||
pos = sprintf(buf, "[%ld:%04d] %s: ", tv.tv_sec,
|
||||
(int)(tv.tv_usec / 100), log_level_names[n]);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue