From a338e585eed0ab8589909925582dc29d885665b9 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 3 Jan 2025 00:26:32 +0000 Subject: util/nvmutil: show the correct hexdump order Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/nvmutil') diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index f95df4cf..6c4ebcd6 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -222,7 +222,7 @@ hexdump(int partnum) printf("%07x", row << 4); for (int c = 0; c < 8; c++) { uint16_t val16 = word((row << 3) + c, partnum); - printf(" %02x%02x", val16 >> 8, val16 & 0xff); + printf(" %02x%02x", val16 & 0xff, val16 >> 8); } printf("\n"); } } -- cgit v1.2.1