aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Behlendorf <behlendorf1@llnl.gov>2023-02-15 17:06:29 +0000
committerGitHub <noreply@github.com>2023-02-15 17:06:29 +0000
commit57cfae4a2f04aaff10c45b3f7975e0fe3ef3e8b8 (patch)
tree2dd2b579eaf62a05cb0932a095aa54cf153026c5
parentf04cb31e7c1775cb6fb1fac716525c7926a14484 (diff)
downloadsrc-57cfae4a2f04aaff10c45b3f7975e0fe3ef3e8b8.tar.gz
src-57cfae4a2f04aaff10c45b3f7975e0fe3ef3e8b8.zip
zdb: zero-pad checksum output follow up
Apply zero padding for checksums consistently. The SNPRINTF_BLKPTR macro was not updated in commit ac7648179c8 which results in the `cli_root/zdb/zdb_checksum.ksh` test case reliably failing. Reviewed-by: Igor Kozhukhov <igor@dilos.org> Reviewed-by: Akash B <akash-b@hpe.com> Reviewed-by: Brian Atkinson <batkinson@lanl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #14497
-rw-r--r--include/sys/spa.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/spa.h b/include/sys/spa.h
index 500eb3491a99..c9d03bf645a9 100644
--- a/include/sys/spa.h
+++ b/include/sys/spa.h
@@ -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, \