Apparently uint64_t is handled differently on CISC and RISC systems. CISC requires the %lu format while RISC requires %llu. Solved the cross-platform ping-pong game by using %llu and type casting rmode_t and setting_t values as (long long unsigned int).

pull/1807/head
Mark J. Fine 2025-07-20 20:08:25 -04:00
rodzic bf63febf08
commit 528d87c496
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -554,8 +554,8 @@ static int gqrx_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
ENTERFUNC;
rig_debug(RIG_DEBUG_TRACE, "%s\n", __func__);
rig_debug(RIG_DEBUG_TRACE, "%s: vfo=%s mode=%lu\n", __func__,
rig_strvfo(vfo), mode);
rig_debug(RIG_DEBUG_TRACE, "%s: vfo=%s mode=%llu\n", __func__,
rig_strvfo(vfo), (long long unsigned int)mode);
if (check_vfo(vfo) == FALSE)
{
@ -735,8 +735,8 @@ static int gqrx_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val)
ENTERFUNC;
rig_debug(RIG_DEBUG_TRACE, "%s\n", __func__);
rig_debug(RIG_DEBUG_TRACE, "%s: vfo=%s level=%lu\n", __func__,
rig_strvfo(vfo), level);
rig_debug(RIG_DEBUG_TRACE, "%s: vfo=%s level=%llu\n", __func__,
rig_strvfo(vfo), (long long unsigned int)level);
if (check_vfo(vfo) == FALSE)
{