summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2019-02-02 15:22:04 +1100
committerChris Johns <chrisj@rtems.org>2019-02-02 17:54:11 +1100
commit74142507d25cc34786646f6cbe0c35256a66b916 (patch)
treea1a535eb4e78bb89e4dcaa457d6224cd709456e0
parentb015c0144367ba7fc88ff9831a0fee812fd6ed29 (diff)
libmisc: Fix rtems_print_buffer
Closes #3684
-rw-r--r--cpukit/libmisc/dumpbuf/dumpbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libmisc/dumpbuf/dumpbuf.c b/cpukit/libmisc/dumpbuf/dumpbuf.c
index a27d685f72..ed4868cdb4 100644
--- a/cpukit/libmisc/dumpbuf/dumpbuf.c
+++ b/cpukit/libmisc/dumpbuf/dumpbuf.c
@@ -88,7 +88,7 @@ static void Dump_Line(const unsigned char *buffer, const unsigned int length)
unsigned char c = buffer[i];
rtems_putc(hexlist[(c >> 4) & 0xf]);
- rtems_putc(hexlist[0xf]);
+ rtems_putc(hexlist[c & 0xf]);
rtems_putc(' ');
}