aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Povey <jon.povey@racelogic.co.uk>2010-08-20 17:11:19 +0900
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-08-30 13:38:59 +0300
commit5beab92915cb3cdd9e479c2af05cfd9c36bf79de (patch)
treefd0ebf4afe5f5af072a52606fa29fc77e37b792d
parentbbab4716b5925b17532f60ca66150021704fb3eb (diff)
nanddump: Fix hexdump nybble ordering
Hex dumps were being printed with the nybbles reversed since commit 6ff458433ba15b8a7cb258ce64e64e98982df26e Fix. Signed-off-by: Jon Povey <jon.povey@racelogic.co.uk> CC: Brian Norris <norris@broadcom.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--nanddump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nanddump.c b/nanddump.c
index acfdb33..22fec5f 100644
--- a/nanddump.c
+++ b/nanddump.c
@@ -239,8 +239,8 @@ static void pretty_dump_to_buffer(const unsigned char *buf, size_t len,
for (j = 0; (j < len) && (lx + 3) <= linebuflen; j++) {
ch = buf[j];
- linebuf[lx++] = hex_asc[ch & 0x0f];
linebuf[lx++] = hex_asc[(ch & 0xf0) >> 4];
+ linebuf[lx++] = hex_asc[ch & 0x0f];
linebuf[lx++] = ' ';
}
if (j)