Fix zdb_dump_block for little endian
The endian macros were changed but zdb_dump_block wasn't updated accordingly. Signed-off-by: Chunwei Chen <david.chen@nutanix.com>
This commit is contained in:
parent
fd51786f86
commit
8c94bb3e42
|
@ -8336,7 +8336,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
|
||||||
|
|
Loading…
Reference in New Issue