From 5beab92915cb3cdd9e479c2af05cfd9c36bf79de Mon Sep 17 00:00:00 2001 From: Jon Povey Date: Fri, 20 Aug 2010 17:11:19 +0900 Subject: nanddump: Fix hexdump nybble ordering Hex dumps were being printed with the nybbles reversed since commit 6ff458433ba15b8a7cb258ce64e64e98982df26e Fix. Signed-off-by: Jon Povey CC: Brian Norris Signed-off-by: Artem Bityutskiy --- nanddump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nanddump.c') 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) -- cgit v1.2.3