]> git.proxmox.com Git - mirror_zfs-debian.git/commit
Fix zdb printf format string for ZIL data blocks
authorCyril Plisko <cyril.plisko@mountall.com>
Wed, 12 Sep 2012 09:15:40 +0000 (12:15 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 13 Sep 2012 16:02:12 +0000 (09:02 -0700)
commit8e8e7f35b71e7aa88f5e45bf1594bcc75526227d
treecd507d49f5cb4536334072b3d55dbd6d10839499
parent5915791096e6b5be0bad7d2e3f683b4e7908cf19
Fix zdb printf format string for ZIL data blocks

Without this fix the zdb printouts of ZIL data blocks look full of FF
due to printf() handling its arguments as int by default.

Here is the output before the fix

                TX_WRITE            len   4136, txg 1093817, seq 149231
                        foid 4242, offset 0, length f68
                        G FFFFFF8EFFFFFF87FFFFFF91FFFFFFCC 1c
FFFFFFAFFFFFFFC9FFFFFFBAZ FFFFFFC3

And the same after the fix

                TX_WRITE            len   4136, txg 1093817, seq 149231
                        foid 4242, offset 0, length f68
                        G 8E8791CC 1cAFC9BAZ C3

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #962
cmd/zdb/zdb_il.c