]> www.infradead.org Git - mtd-utils.git/commit
nanddump: robust pretty hexdump
authorBrian Norris <norris@broadcom.com>
Mon, 19 Jul 2010 17:33:14 +0000 (10:33 -0700)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 21 Jul 2010 09:57:31 +0000 (12:57 +0300)
commit6ff458433ba15b8a7cb258ce64e64e98982df26e
tree5caa811e42a37c49adb54954075728ee957fa444
parent02ae0aac87576d07202a62d11294ea55b56f450b
nanddump: robust pretty hexdump

Adapted code from the linux kernel hex_dump_to_buffer() (lib/hexdump.c)
to provide a more robust hexdump for the pretty option. Now, nanddump
can print out any size of OOB (or page for that matter...) without
having to worry about non-multiples of 16.

This also provides ability to dump ASCII format next to the hex output
once additional command-line flags are added.

Tested with Samsung K9GAG08U0D

Signed-off-by: Brian Norris <norris@broadcom.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
nanddump.c