diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 14:51:10 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 14:51:10 -0600 |
commit | b845f19a3bb200e49a7a314787b3290e3155ce01 (patch) | |
tree | 51d3d2e4887b9a950b1e7d85c61359544c7f547c /apps/examples/usbserial | |
parent | f7de6bbcbae818aff936bd71ee5268946ea9ad30 (diff) | |
download | px4-nuttx-b845f19a3bb200e49a7a314787b3290e3155ce01.tar.gz px4-nuttx-b845f19a3bb200e49a7a314787b3290e3155ce01.tar.bz2 px4-nuttx-b845f19a3bb200e49a7a314787b3290e3155ce01.zip |
Fixes for more cppcheck complaints. Mostly cosmetic
Diffstat (limited to 'apps/examples/usbserial')
-rw-r--r-- | apps/examples/usbserial/host.c | 4 | ||||
-rw-r--r-- | apps/examples/usbserial/usbserial_main.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/examples/usbserial/host.c b/apps/examples/usbserial/host.c index 366b62223..37ff9efa8 100644 --- a/apps/examples/usbserial/host.c +++ b/apps/examples/usbserial/host.c @@ -248,7 +248,7 @@ int main(int argc, char **argv, char **envp) } g_iobuffer[nbytes] = '\0'; - printf("main: Received %d bytes:\n", nbytes); + printf("main: Received %ld bytes:\n", (long)nbytes); printf(" \"%s\"\n", g_iobuffer); #else printf("main: Waiting...\n"); @@ -287,7 +287,7 @@ int main(int argc, char **argv, char **envp) close(fd); return 2; } - printf("main: %d bytes sent\n", nbytes); + printf("main: %ld bytes sent\n", (long)nbytes); #endif /* CONFIG_EXAMPLES_USBSERIAL_INONLY */ } diff --git a/apps/examples/usbserial/usbserial_main.c b/apps/examples/usbserial/usbserial_main.c index 11dda6abc..13c4bdb5c 100644 --- a/apps/examples/usbserial/usbserial_main.c +++ b/apps/examples/usbserial/usbserial_main.c @@ -352,7 +352,7 @@ int usbserial_main(int argc, char *argv[]) close(outfd); return 4; } - printf("usbserial_main: %d bytes sent\n", nbytes); + printf("usbserial_main: %ld bytes sent\n", (long)nbytes); #endif /* CONFIG_EXAMPLES_USBSERIAL_OUTONLY */ /* Test OUT (host-to-device) messages */ @@ -380,7 +380,7 @@ int usbserial_main(int argc, char *argv[]) } else { - printf("usbserial_main: Received %d bytes:\n", nbytes); + printf("usbserial_main: Received l%d bytes:\n", (long)nbytes); if (nbytes > 0) { for (j = 0; j < nbytes; j += 16) |