* [PATCH] station: fix printing uint64_t by using PRIx64
@ 2024-09-11 14:00 James Prestwood
0 siblings, 0 replies; only message in thread
From: James Prestwood @ 2024-09-11 14:00 UTC (permalink / raw)
To: iwd; +Cc: James Prestwood
This fixed non 64-bit builds. In addition the formatting for the
seconds integer was changed to %d, since its an int.
---
src/station.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/station.c b/src/station.c
index 550ef745..9ebed8e2 100644
--- a/src/station.c
+++ b/src/station.c
@@ -3094,19 +3094,19 @@ static void station_roam_timeout_rearm(struct station *station, int seconds)
/* Our current timeout is less than the rearm, keep current */
if (l_time_before(remaining, seconds * L_USEC_PER_SEC)) {
- l_debug("Keeping current roam timeout of %lu seconds",
+ l_debug("Keeping current roam timeout of %" PRIx64 " seconds",
l_time_to_secs(remaining));
return;
}
- l_debug("Rescheduling roam timeout from %lu to %u seconds",
+ l_debug("Rescheduling roam timeout from %" PRIx64" to %d seconds",
l_time_to_secs(remaining), seconds);
l_timeout_modify(station->roam_trigger_timeout, seconds);
return;
new_timeout:
- l_debug("Arming new roam timer for %u seconds", seconds);
+ l_debug("Arming new roam timer for %d seconds", seconds);
station->roam_trigger_timeout =
l_timeout_create(seconds, station_roam_trigger_cb,
--
2.34.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-09-11 14:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-11 14:00 [PATCH] station: fix printing uint64_t by using PRIx64 James Prestwood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox