Skip to content

Commit

Permalink
Fix zdb_dump_block for little endian
Browse files Browse the repository at this point in the history
The endian macros were changed but zdb_dump_block wasn't updated
accordingly.

Signed-off-by: Chunwei Chen <david.chen@nutanix.com>
  • Loading branch information
davidchenntnx committed Jun 28, 2024
1 parent fd51786 commit 8c94bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/zdb/zdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

#ifdef _LITTLE_ENDIAN
#ifdef _ZFS_LITTLE_ENDIAN
/* correct the endianness */
do_bswap = !do_bswap;
#endif
Expand Down

0 comments on commit 8c94bb3

Please sign in to comment.