From 3bdefad0977986e4f70ca609a4c926b16fe76b43 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 3 Mar 2026 13:23:20 +0000 Subject: util/nvmutil: readGbe: use inverted part in swap i overlooked this in a previous modification Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index e43db7ef..3bc2a4d1 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -210,7 +210,7 @@ readGbe_part(int p, int invert) != SIZE_4KB) err(set_err(ECANCELED), "Can't read %d b from '%s' p%d", SIZE_4KB, fname, p); - swap(p); /* handle big-endian host CPU */ + swap(p ^ invert); /* handle big-endian host CPU */ } void -- cgit v1.2.1