mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
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:
parent
ec580bc520
commit
c21dc56ea3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user