Skip to content
Snippets Groups Projects
Commit 2b3bc90b authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Correct a comment

parent 59abd48b
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@ void lib_dumpbuffer(FAR const char *msg, FAR const uint8_t *buffer,
{
FAR char *ptr = buf;
/* General hex values. 2 * _NITEMS + 1 bytes */
/* Generate hex values: 2 * _NITEMS + 1 bytes */
for (j = 0; j < _NITEMS; j++)
{
......@@ -125,9 +125,9 @@ void lib_dumpbuffer(FAR const char *msg, FAR const uint8_t *buffer,
}
}
*ptr++= ' ';
*ptr++= ' '; /* Plus 1 byte */
/* General hex values. 1 * _NITEMS + 1 bytes */
/* Generate printable characters: Plus 1 * _NITEMS + 1 bytes */
for (j = 0; j < _NITEMS; j++)
{
......@@ -151,7 +151,7 @@ void lib_dumpbuffer(FAR const char *msg, FAR const uint8_t *buffer,
}
}
*ptr = '\0';
*ptr = '\0'; /* Plus 1 byte */
syslog(LOG_INFO, "%04x: %s\n", i, buf);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment