Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testj1939: fix warning on 32 bit systems
testj1939.c: In function 'main': testj1939.c:201:3: warning: format '%li' expects argument of type 'long int', but argument 4 has type 'unsigned int' [-Wformat=] fprintf(stderr, "- bind(, %s, %li);\n", canaddr2str(&sockname), sizeof(sockname)); ^ testj1939.c:210:4: warning: format '%li' expects argument of type 'long int', but argument 4 has type 'unsigned int' [-Wformat=] fprintf(stderr, "- connect(, %s, %li);\n", canaddr2str(&peername), sizeof(peername)); ^ testj1939.c:228:5: warning: format '%li' expects argument of type 'long int', but argument 5 has type 'unsigned int' [-Wformat=] fprintf(stderr, "- sendto(, <dat>, %i, 0, %s, %li);\n", todo_send, canaddr2str(&peername), sizeof(peername)); ^ testj1939.c:254:4: warning: format '%li' expects argument of type 'long int', but argument 3 has type 'unsigned int' [-Wformat=] fprintf(stderr, "- recvfrom(, <dat>, %li, 0, &<peername>, %li);\n", sizeof(peername), sizeof(peername)); ^ testj1939.c:254:4: warning: format '%li' expects argument of type 'long int', but argument 4 has type 'unsigned int' [-Wformat=] Use 'z' as correct modifier to print sizeof(). Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
- Loading branch information