From 6ce1b5be9d505f2f1c0fd79a0c9c514cf919b406 Mon Sep 17 00:00:00 2001 From: Stanislaw Grams Date: Thu, 12 Feb 2026 21:23:10 +0100 Subject: [PATCH] [fix](trx-ft8): use portable uint64 format macros Replace llx specifiers with PRIx64 in external ft8 message logging to avoid platform-dependent printf warnings. Co-authored-by: Codex Signed-off-by: Stanislaw Grams --- external/ft8_lib/ft8/message.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/external/ft8_lib/ft8/message.c b/external/ft8_lib/ft8/message.c index 5975636..9854fc7 100644 --- a/external/ft8_lib/ft8/message.c +++ b/external/ft8_lib/ft8/message.c @@ -1,5 +1,6 @@ #include "message.h" #include "text.h" +#include #include #include @@ -524,7 +525,7 @@ ftx_message_rc_t ftx_message_decode_nonstd(const ftx_message_t* msg, ftx_callsig // Extract i3 (bits 74..76) uint8_t i3 = (msg->payload[9] >> 3) & 0x07u; - LOG(LOG_DEBUG, "decode_nonstd() n12=%04x n58=%08llx iflip=%d nrpt=%d icq=%d i3=%d\n", n12, n58, iflip, nrpt, icq, i3); + LOG(LOG_DEBUG, "decode_nonstd() n12=%04x n58=%08" PRIx64 " iflip=%d nrpt=%d icq=%d i3=%d\n", n12, n58, iflip, nrpt, icq, i3); // Decode one of the calls from 58 bit encoded string char call_decoded[14]; @@ -1016,7 +1017,7 @@ static bool pack58(const ftx_callsign_hash_interface_t* hash_if, const char* cal return false; *n58 = result; - LOG(LOG_DEBUG, "pack58('%s')=%016llx\n", callsign, *n58); + LOG(LOG_DEBUG, "pack58('%s')=%016" PRIx64 "\n", callsign, *n58); return true; } @@ -1036,7 +1037,7 @@ static bool unpack58(uint64_t n58, const ftx_callsign_hash_interface_t* hash_if, // The decoded string will be right-aligned, so trim all whitespace (also from back just in case) trim_copy(callsign, c11); - LOG(LOG_DEBUG, "unpack58(%016llx)=%s\n", n58_backup, callsign); + LOG(LOG_DEBUG, "unpack58(%016" PRIx64 ")=%s\n", n58_backup, callsign); // Save the decoded call in a hash table for later if (strlen(callsign) >= 3)