diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-02-10 19:11:56 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-02-10 19:11:56 -0600 |
commit | 797e41438176de465272bef182e035cd0fe5884a (patch) | |
tree | 3af4825ad5b2c3bd579305d025c35d6a3b96c9a1 /apps/examples/can | |
parent | 6db1f6f71c8867cbae3a2c5597b01f321064a370 (diff) | |
download | px4-nuttx-797e41438176de465272bef182e035cd0fe5884a.tar.gz px4-nuttx-797e41438176de465272bef182e035cd0fe5884a.tar.bz2 px4-nuttx-797e41438176de465272bef182e035cd0fe5884a.zip |
More changes to reduce complaints from CppCheck. Some latent bugs fixes, but probably some new typos introduced
Diffstat (limited to 'apps/examples/can')
-rw-r--r-- | apps/examples/can/can_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/examples/can/can_main.c b/apps/examples/can/can_main.c index 310bea845..ff9e0a6ec 100644 --- a/apps/examples/can/can_main.c +++ b/apps/examples/can/can_main.c @@ -217,7 +217,7 @@ int can_main(int argc, char *argv[]) nbytes = write(fd, &txmsg, msgsize); if (nbytes != msgsize) { - message("ERROR: write(%d) returned %d\n", msgsize, nbytes); + message("ERROR: write(%ld) returned %ld\n", (long)msgsize, (long)nbytes); errval = 3; goto errout_with_dev; } @@ -234,7 +234,7 @@ int can_main(int argc, char *argv[]) nbytes = read(fd, &rxmsg, msgsize); if (nbytes < CAN_MSGLEN(0) || nbytes > msgsize) { - message("ERROR: read(%d) returned %d\n", msgsize, nbytes); + message("ERROR: read(%ld) returned %ld\n", (long)msgsize, (long)nbytes); errval = 4; goto errout_with_dev; } |