log.c: Fixes format string to match actual type.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4938 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
35fd3c10c1
commit
b1287e3ff2
|
@ -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.%03d ", (unsigned long)pthread_self(), time_string, tv.tv_usec / 1000);
|
r = snprintf(p, left, "0x%lx %s.%03ld ", (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