Fix the build of crypto_test on LP32 architectures

test->id is a uint64_t, not a long.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by:	Alan Somers <asomers@gmail.com>
Sponsored by:	ConnectWise
Closes #17707
This commit is contained in:
Alan Somers 2025-09-10 12:27:39 -06:00 committed by Brian Behlendorf
parent e2e708241a
commit 177e9d07d0

View File

@ -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");