diff options
author | Jon Povey <jon.povey@racelogic.co.uk> | 2010-08-20 17:11:19 +0900 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-08-30 13:38:59 +0300 |
commit | 5beab92915cb3cdd9e479c2af05cfd9c36bf79de (patch) | |
tree | fd0ebf4afe5f5af072a52606fa29fc77e37b792d | |
parent | bbab4716b5925b17532f60ca66150021704fb3eb (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |