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:
andre 2010-12-09 19:52:56 +00:00
parent 35fd3c10c1
commit b1287e3ff2
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ void sc_do_log_va(sc_context_t *ctx, int level, const char *file, int line, cons
gettimeofday (&tv, NULL);
tm = localtime (&tv.tv_sec);
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
p += r;
left -= r;