[rtems commit] libmisc: Fix rtems_print_buffer
Chris Johns
chrisj at rtems.org
Fri Feb 8 23:07:58 UTC 2019
Module: rtems
Branch: master
Commit: 2d8a9c794cb108149b6187afd2bdf606f88cb535
Changeset: http://git.rtems.org/rtems/commit/?id=2d8a9c794cb108149b6187afd2bdf606f88cb535
Author: Chris Johns <chrisj at rtems.org>
Date: Sat Feb 2 15:22:04 2019 +1100
libmisc: Fix rtems_print_buffer
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 a27d685..ed4868c 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(' ');
}
More information about the vc
mailing list