summaryrefslogtreecommitdiff
path: root/nuttx/libc/misc
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-01-14 13:30:22 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-01-14 13:30:22 -0600
commit909af806c753228e9ae279432993c93e9180b54f (patch)
tree943750805050126fae960ac09211e22d8ca2cef5 /nuttx/libc/misc
parent37a1adc0053c37b3bc70379f489f93359724186a (diff)
downloadpx4-nuttx-909af806c753228e9ae279432993c93e9180b54f.tar.gz
px4-nuttx-909af806c753228e9ae279432993c93e9180b54f.tar.bz2
px4-nuttx-909af806c753228e9ae279432993c93e9180b54f.zip
Changes to get PX4 config to build. Also some warning removal
Diffstat (limited to 'nuttx/libc/misc')
-rw-r--r--nuttx/libc/misc/lib_dumpbuffer.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/libc/misc/lib_dumpbuffer.c b/nuttx/libc/misc/lib_dumpbuffer.c
index 5194560fd..bd908196d 100644
--- a/nuttx/libc/misc/lib_dumpbuffer.c
+++ b/nuttx/libc/misc/lib_dumpbuffer.c
@@ -1,7 +1,7 @@
/****************************************************************************
* libc/misc/lib_dumpbuffer.c
*
- * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2009, 2011, 2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -77,7 +77,9 @@
void lib_dumpbuffer(FAR const char *msg, FAR const uint8_t *buffer, unsigned int buflen)
{
- int i, j, k;
+ unsigned int i;
+ unsigned int j;
+ unsigned int k;
message("%s (%p):\n", msg, buffer);
for (i = 0; i < buflen; i += 32)
@@ -124,6 +126,7 @@ void lib_dumpbuffer(FAR const char *msg, FAR const uint8_t *buffer, unsigned int
}
}
}
+
message("\n");
}
}