From b1287e3ff2b851bec64eff1e73f468fc8c316728 Mon Sep 17 00:00:00 2001 From: andre Date: Thu, 9 Dec 2010 19:52:56 +0000 Subject: [PATCH] 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 --- src/libopensc/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libopensc/log.c b/src/libopensc/log.c index 00ed8142..521d510c 100644 --- a/src/libopensc/log.c +++ b/src/libopensc/log.c @@ -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;