Skip to content

Commit

Permalink
zdb: zero-pad checksum output follow up
Browse files Browse the repository at this point in the history
Apply zero padding for checksums consistently.  The SNPRINTF_BLKPTR
macro was not updated in commit ac76481 which results in the
`cli_root/zdb/zdb_checksum.ksh` test case reliably failing.

Reviewed-by: Igor Kozhukhov <[email protected]>
Reviewed-by: Akash B <[email protected]>
Reviewed-by: Brian Atkinson <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#14497
  • Loading branch information
behlendorf authored Feb 15, 2023
1 parent f04cb31 commit 57cfae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sys/spa.h
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ typedef struct blkptr {
len += func(buf + len, size - len, \
"[L%llu %s] %s %s %s %s %s %s %s%c" \
"size=%llxL/%llxP birth=%lluL/%lluP fill=%llu%c" \
"cksum=%llx:%llx:%llx:%llx", \
"cksum=%016llx:%016llx:%016llx:%016llx", \
(u_longlong_t)BP_GET_LEVEL(bp), \
type, \
checksum, \
Expand Down

0 comments on commit 57cfae4

Please sign in to comment.