[PATCH 01/11] libmisc: Fix rtems_print_buffer

chrisj at rtems.org chrisj at rtems.org
Tue Feb 5 01:42:54 UTC 2019


From: Chris Johns <chrisj at rtems.org>

Closes #3684
---
 cpukit/libmisc/dumpbuf/dumpbuf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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(' ');
   }
 
-- 
2.19.1



More information about the devel mailing list