From 9f60ed6fa0c79964ef1556cf23fc6757471afc66 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Tue, 12 Mar 2019 10:01:46 +0100 Subject: [PATCH] testj1939: use %zu to as format string to print sizeof() Signed-off-by: Marc Kleine-Budde --- testj1939.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testj1939.c b/testj1939.c index fd24e0a..16a8249 100644 --- a/testj1939.c +++ b/testj1939.c @@ -102,7 +102,7 @@ int main(int argc, char *argv[]) case 's': todo_send = strtoul(optarg ?: "8", NULL, 0); if (todo_send > sizeof(dat)) - error(1, 0, "Unsupported size. max: %i", sizeof(dat)); + error(1, 0, "Unsupported size. max: %zu", sizeof(dat)); break; case 'r': todo_recv = 1;