From 80a313fb2abc866c25ac4afbbd1071c434cd754f Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Mon, 29 Feb 2016 18:15:55 +0100 Subject: [PATCH] pkcs11-spy.c: fix 1 warning pkcs11-spy.c:259:49: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] fprintf(spy_output, "%s.%03ld\n", time_string, tv.tv_usec / 1000); ~~~~~ ^~~~~~~~~~~~~~~~~ %03d --- src/pkcs11/pkcs11-spy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkcs11/pkcs11-spy.c b/src/pkcs11/pkcs11-spy.c index 49a6116c..1aed6389 100644 --- a/src/pkcs11/pkcs11-spy.c +++ b/src/pkcs11/pkcs11-spy.c @@ -256,7 +256,7 @@ enter(const char *function) gettimeofday (&tv, NULL); tm = localtime (&tv.tv_sec); strftime (time_string, sizeof(time_string), "%F %H:%M:%S", tm); - fprintf(spy_output, "%s.%03ld\n", time_string, tv.tv_usec / 1000); + fprintf(spy_output, "%s.%03ld\n", time_string, (long)tv.tv_usec / 1000); #endif }