sc_do_log_va(): fix compiler warning
log.c:87: warning: format ‘%03ld’ expects type ‘long int’, but argument 8 has type ‘int’ git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4859 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
98fdeaa0b6
commit
3aea304a8e
|
@ -84,7 +84,7 @@ void sc_do_log_va(sc_context_t *ctx, int level, const char *file, int line, cons
|
||||||
gettimeofday (&tv, NULL);
|
gettimeofday (&tv, NULL);
|
||||||
tm = localtime (&tv.tv_sec);
|
tm = localtime (&tv.tv_sec);
|
||||||
strftime (time_string, sizeof(time_string), "%H:%M:%S", tm);
|
strftime (time_string, sizeof(time_string), "%H:%M:%S", tm);
|
||||||
r = snprintf(p, left, "0x%lx %s.%03ld ", (unsigned long)pthread_self(), time_string, tv.tv_usec / 1000);
|
r = snprintf(p, left, "0x%lx %s.%03d ", (unsigned long)pthread_self(), time_string, tv.tv_usec / 1000);
|
||||||
#endif
|
#endif
|
||||||
p += r;
|
p += r;
|
||||||
left -= r;
|
left -= r;
|
||||||
|
|
Loading…
Reference in New Issue