diff mbox series

station: fix printing uint64_t by using PRIx64

Message ID 20240911140044.164855-1-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series station: fix printing uint64_t by using PRIx64 | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-alpine-ci-fetch success Fetch PR
prestwoj/iwd-alpine-ci-setupell success Prep - Setup ELL
prestwoj/iwd-ci-gitlint success GitLint
prestwoj/iwd-ci-fetch success Fetch PR
prestwoj/iwd-ci-setupell success Prep - Setup ELL
prestwoj/iwd-alpine-ci-makedistcheck success Make Distcheck
prestwoj/iwd-alpine-ci-incremental_build success Incremental build not run PASS
prestwoj/iwd-alpine-ci-build success Build - Configure
prestwoj/iwd-ci-makedistcheck success Make Distcheck
prestwoj/iwd-ci-incremental_build success Incremental build not run PASS
prestwoj/iwd-ci-build success Build - Configure
prestwoj/iwd-alpine-ci-makecheckvalgrind success Make Check w/Valgrind
prestwoj/iwd-alpine-ci-makecheck success Make Check
prestwoj/iwd-ci-makecheckvalgrind success Make Check w/Valgrind
prestwoj/iwd-ci-makecheck success Make Check
prestwoj/iwd-ci-clang success clang PASS
prestwoj/iwd-ci-testrunner success test-runner PASS

Commit Message

James Prestwood Sept. 11, 2024, 2 p.m. UTC
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 mbox series

Patch

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,