From e23ba0ec99dbb8f471c63361c1630672025c6372 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 9 Nov 2026 23:11:57 +0700 Subject: [PATCH] hf piv: print unsigned long length with %lu, not PRIu64 v is unsigned long; PRIu64 is "llu" on macOS, so clang fails the build with the PrintAndLogEx format attribute. Co-Authored-By: Claude Opus 5.5 --- client/src/cmdpiv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdpiv.c b/client/src/cmdpiv.c index 165f77c1f..d6f66bd9e 100644 --- a/client/src/cmdpiv.c +++ b/client/src/cmdpiv.c @@ -392,7 +392,7 @@ static void piv_tag_dump_int_array(const struct tlv *tlv, const struct piv_tag * for (int i = 0; i < sub_tlv.len; i++) { v = (v << 8) + sub_tlv.value[i]; } - PrintAndLogEx(NORMAL, _YELLOW_("%" PRIu64) " bytes (" _YELLOW_("%" PRIx64) ")", v, v); + PrintAndLogEx(NORMAL, _YELLOW_("%lu") " bytes (" _YELLOW_("%lx") ")", v, v); } else { // Number is to big. Just print hex value PrintAndLogEx(NORMAL, _YELLOW_("0x%s"), sprint_hex_inrow(sub_tlv.value, sub_tlv.len));