testj1939: use %zu to as format string to print sizeof()

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
pull/130/head
Marc Kleine-Budde 2019-03-12 10:01:46 +01:00
parent e1d5ee9907
commit 9f60ed6fa0
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ int main(int argc, char *argv[])
case 's': case 's':
todo_send = strtoul(optarg ?: "8", NULL, 0); todo_send = strtoul(optarg ?: "8", NULL, 0);
if (todo_send > sizeof(dat)) if (todo_send > sizeof(dat))
error(1, 0, "Unsupported size. max: %i", sizeof(dat)); error(1, 0, "Unsupported size. max: %zu", sizeof(dat));
break; break;
case 'r': case 'r':
todo_recv = 1; todo_recv = 1;