mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 19:34:43 +01: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 <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Tino Reichardt <[email protected]> Reviewed-by: Allan Jude <[email protected]>
This commit is contained in:
1 parent
ec580bc520
commit
c21dc56ea3
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user