From f9ee9226e48de06945e944e5a69f8b2226ef38c5 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 15 Feb 2023 09:06:29 -0800 Subject: [PATCH] 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 Reviewed-by: Akash B Reviewed-by: Brian Atkinson Signed-off-by: Brian Behlendorf Closes #14497 --- include/sys/spa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, \