linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nanddump: Fix hexdump nybble ordering
@ 2010-08-20  8:11 Jon Povey
  2010-08-20 19:03 ` Brian Norris
  2010-08-30 10:39 ` Artem Bityutskiy
  0 siblings, 2 replies; 4+ messages in thread
From: Jon Povey @ 2010-08-20  8:11 UTC (permalink / raw)
  To: linux-mtd; +Cc: Jon Povey, Brian Norris

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>
---
 nanddump.c |    2 +-
 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)
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-30 10:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-20  8:11 [PATCH] nanddump: Fix hexdump nybble ordering Jon Povey
2010-08-20 19:03 ` Brian Norris
2010-08-30 10:38   ` Artem Bityutskiy
2010-08-30 10:39 ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).