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 <david.chen@nutanix.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Allan Jude <allan@klarasystems.com>
This commit is contained in:
Chunwei Chen 2024-07-31 18:33:39 -07:00 committed by GitHub
parent ec580bc520
commit c21dc56ea3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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); (void) printf("\n%s\n%6s %s 0123456789abcdef\n", label, "", hdr);
#ifdef _LITTLE_ENDIAN #ifdef _ZFS_LITTLE_ENDIAN
/* correct the endianness */ /* correct the endianness */
do_bswap = !do_bswap; do_bswap = !do_bswap;
#endif #endif