From 3aea304a8e0381c9364450085c1a0e5b7636bcbc Mon Sep 17 00:00:00 2001 From: "ludovic.rousseau" Date: Sat, 6 Nov 2010 16:50:41 +0000 Subject: [PATCH] =?UTF-8?q?sc=5Fdo=5Flog=5Fva():=20fix=20compiler=20warnin?= =?UTF-8?q?g=20log.c:87:=20warning:=20format=20=E2=80=98%03ld=E2=80=99=20e?= =?UTF-8?q?xpects=20type=20=E2=80=98long=20int=E2=80=99,=20but=20argument?= =?UTF-8?q?=208=20has=20type=20=E2=80=98int=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4859 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 521d510c..00ed8142 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.%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 p += r; left -= r;