From c21dc56ea3575792ed2bf9ca729da45d564762d9 Mon Sep 17 00:00:00 2001 From: Chunwei Chen Date: Wed, 31 Jul 2024 18:33:39 -0700 Subject: [PATCH] Fix zdb_dump_block for little endian (#16310) The endian macros were changed but zdb_dump_block wasn't updated accordingly. Signed-off-by: Chunwei Chen Reviewed-by: Tony Hutter Reviewed-by: Tino Reichardt Reviewed-by: Allan Jude --- cmd/zdb/zdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/zdb/zdb.c b/cmd/zdb/zdb.c index a009942401..dec70c60ce 100644 --- a/cmd/zdb/zdb.c +++ b/cmd/zdb/zdb.c @@ -8363,7 +8363,7 @@ zdb_dump_block(char *label, void *buf, uint64_t size, int flags) (void) printf("\n%s\n%6s %s 0123456789abcdef\n", label, "", hdr); -#ifdef _LITTLE_ENDIAN +#ifdef _ZFS_LITTLE_ENDIAN /* correct the endianness */ do_bswap = !do_bswap; #endif