summaryrefslogtreecommitdiff
path: root/apps/examples/smart
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-25 14:51:10 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-25 14:51:10 -0600
commitb845f19a3bb200e49a7a314787b3290e3155ce01 (patch)
tree51d3d2e4887b9a950b1e7d85c61359544c7f547c /apps/examples/smart
parentf7de6bbcbae818aff936bd71ee5268946ea9ad30 (diff)
downloadnuttx-b845f19a3bb200e49a7a314787b3290e3155ce01.tar.gz
nuttx-b845f19a3bb200e49a7a314787b3290e3155ce01.tar.bz2
nuttx-b845f19a3bb200e49a7a314787b3290e3155ce01.zip
Fixes for more cppcheck complaints. Mostly cosmetic
Diffstat (limited to 'apps/examples/smart')
-rw-r--r--apps/examples/smart/smart_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/examples/smart/smart_main.c b/apps/examples/smart/smart_main.c
index 83585cba4..d9e1819b5 100644
--- a/apps/examples/smart/smart_main.c
+++ b/apps/examples/smart/smart_main.c
@@ -552,7 +552,7 @@ static inline int smart_rdfile(FAR struct smart_filedesc_s *file)
printf("ERROR: Read past the end of file\n");
printf(" File name: %s\n", file->name);
printf(" File size: %d\n", file->len);
- printf(" Bytes read: %d\n", nbytesread);
+ printf(" Bytes read: %ld\n", (long)nbytesread);
close(fd);
return ERROR;
}