Merge pull request #130 from marckleinebudde/testj1939

testj1939: use %zu to as format string to print sizeof()
pull/136/head
Marc Kleine-Budde 2019-03-12 12:52:13 +01:00 committed by GitHub
commit 83667e822c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;