From 528d87c496db2cfb35c85375c405c3f6f3ad4a3a Mon Sep 17 00:00:00 2001 From: "Mark J. Fine" Date: Sun, 20 Jul 2025 20:08:25 -0400 Subject: [PATCH] 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). --- rigs/dummy/gqrx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rigs/dummy/gqrx.c b/rigs/dummy/gqrx.c index 5554c1a0a..5a9365278 100644 --- a/rigs/dummy/gqrx.c +++ b/rigs/dummy/gqrx.c @@ -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) {