public inbox for iwd@lists.linux.dev
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.linux.dev
Cc: James Prestwood <prestwoj@gmail.com>
Subject: [PATCH] station: fix printing uint64_t by using PRIx64
Date: Wed, 11 Sep 2024 07:00:44 -0700	[thread overview]
Message-ID: <20240911140044.164855-1-prestwoj@gmail.com> (raw)

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


                 reply	other threads:[~2024-09-11 14:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240911140044.164855-1-prestwoj@gmail.com \
    --to=prestwoj@gmail.com \
    --cc=iwd@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox