summaryrefslogtreecommitdiff
path: root/apps/examples/usbserial/host.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/usbserial/host.c')
-rw-r--r--apps/examples/usbserial/host.c4
1 files changed, 2 insertions, 2 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 */
}