Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

UBI: use byte hexdump

More handy since word hexdump prints in host endian.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

+3 -3
+2 -2
drivers/mtd/ubi/debug.c
··· 42 42 dbg_msg("data_offset %d", be32_to_cpu(ec_hdr->data_offset)); 43 43 dbg_msg("hdr_crc %#08x", be32_to_cpu(ec_hdr->hdr_crc)); 44 44 dbg_msg("erase counter header hexdump:"); 45 - print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 32, 4, 46 - (void *)ec_hdr, UBI_EC_HDR_SIZE, 1); 45 + print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 32, 1, 46 + ec_hdr, UBI_EC_HDR_SIZE, 1); 47 47 } 48 48 49 49 /**
+1 -1
drivers/mtd/ubi/io.c
··· 1243 1243 fail: 1244 1244 ubi_err("paranoid check failed for PEB %d", pnum); 1245 1245 dbg_msg("hex dump of the %d-%d region", offset, offset + len); 1246 - print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 32, 4, 1246 + print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 32, 1, 1247 1247 ubi->dbg_peb_buf, len, 1); 1248 1248 err = 1; 1249 1249 error: