[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 <codex@openai.com>
Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>
This commit is contained in:
2026-02-12 21:23:10 +01:00
parent 0aa2fcbbbb
commit 6ce1b5be9d
+4 -3
View File
@@ -1,5 +1,6 @@
#include "message.h"
#include "text.h"
#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
@@ -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)