From 4af9518ce55b9bc16714ed5697d5e23bbefd1c65 Mon Sep 17 00:00:00 2001 From: Robert Johansson Date: Tue, 24 Jul 2012 23:11:02 +0900 Subject: [PATCH] correct fprintf format type for size_t --- mbus/mbus-protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbus/mbus-protocol.c b/mbus/mbus-protocol.c index e11dfe9..02d62a1 100755 --- a/mbus/mbus-protocol.c +++ b/mbus/mbus-protocol.c @@ -3175,7 +3175,7 @@ mbus_hex_dump(const char *label, const char *buff, size_t len) timeinfo = gmtime ( &rawtime ); strftime(timestamp,20,"%Y-%m-%d %H:%M:%S",timeinfo); - fprintf(stderr, "[%s] %s (%03d):", timestamp, label, len); + fprintf(stderr, "[%s] %s (%03zu):", timestamp, label, len); for (i = 0; i < len; i++) {