correct fprintf format type for size_t

This commit is contained in:
Robert Johansson 2012-07-24 23:11:02 +09:00
parent 9ef64d0fb5
commit 4af9518ce5

View File

@ -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++)
{