Fixes the following build failure on arm32:
| ../git/src/compositor.c: In function 'log_timestamp':
| ../git/src/compositor.c:1848:39: error: format '%li' expects argument of type 'long int', but argument 6 has type '__suseconds64_t' {aka 'long long i
nt'} [-Werror=format=]
| 1848 | snprintf(buf, len, "%s[%s.%03li]", datestr,
| | ~~~~^
| | |
| | long int
| | %03lli
| 1849 | timestr, (tv.tv_usec / 1000));
| | ~~~~~~~~~~~~~~~~~~~
| | |
| | __suseconds64_t {aka long long int}
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I9c9a532e2535501035867ed29a2d296900509489
strftime(timestr, sizeof(timestr), "%H:%M:%S", brokendown_time);
/* if datestr is empty it prints only timestr*/
strftime(timestr, sizeof(timestr), "%H:%M:%S", brokendown_time);
/* if datestr is empty it prints only timestr*/
- snprintf(buf, len, "%s[%s.%03li]", datestr,
+ snprintf(buf, len, "%s[%s.%03"PRIi64"]", datestr,
timestr, (tv.tv_usec / 1000));
return buf;
timestr, (tv.tv_usec / 1000));
return buf;