station: fix printing uint64_t by using PRIx64

This fixed non 64-bit builds. In addition the formatting for the
seconds integer was changed to %d, since its an int.
This commit is contained in:
James Prestwood 2024-09-11 07:00:44 -07:00 committed by Denis Kenzior
parent 4b2c6de45c
commit af99fbb6c0
1 changed files with 3 additions and 3 deletions

View File

@ -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 */ /* Our current timeout is less than the rearm, keep current */
if (l_time_before(remaining, seconds * L_USEC_PER_SEC)) { 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)); l_time_to_secs(remaining));
return; 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_time_to_secs(remaining), seconds);
l_timeout_modify(station->roam_trigger_timeout, seconds); l_timeout_modify(station->roam_trigger_timeout, seconds);
return; return;
new_timeout: 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 = station->roam_trigger_timeout =
l_timeout_create(seconds, station_roam_trigger_cb, l_timeout_create(seconds, station_roam_trigger_cb,