From 177e9d07d0c6c6ea32190123b30b147e0f0fb7bc Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Wed, 10 Sep 2025 12:27:39 -0600 Subject: [PATCH] Fix the build of crypto_test on LP32 architectures test->id is a uint64_t, not a long. Reviewed-by: Brian Behlendorf Reviewed-by: Alexander Motin Signed-off-by: Alan Somers Sponsored by: ConnectWise Closes #17707 --- tests/zfs-tests/cmd/crypto_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/zfs-tests/cmd/crypto_test.c b/tests/zfs-tests/cmd/crypto_test.c index cbebd33e0..c8d8622c7 100644 --- a/tests/zfs-tests/cmd/crypto_test.c +++ b/tests/zfs-tests/cmd/crypto_test.c @@ -863,7 +863,8 @@ test_result(const crypto_test_t *test, int encrypt_rv, uint8_t *encrypt_buf, return (pass); /* print summary of test result */ - printf("%s[%lu]: encrypt=%s decrypt=%s\n", test->fileloc, test->id, + printf("%s[%ju]: encrypt=%s decrypt=%s\n", test->fileloc, + (uintmax_t)test->id, encrypt_pass ? "PASS" : "FAIL", decrypt_pass ? "PASS" : "FAIL");