From 5db022041c7d02f6b2833d9a1c67808d5e5c62fe Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 5 Sep 2018 11:06:15 -0500 Subject: [PATCH] station: Fix up some printf type inconsistencies The ifindex as reported by netdev is unsigned, so make sure that it is printed as such. It is astronomically unlikely that this causes any actual issues, but lets be paranoid. --- src/station.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/station.c b/src/station.c index a5cff3c9..d47c0c5c 100644 --- a/src/station.c +++ b/src/station.c @@ -758,7 +758,7 @@ static void station_roam_failed(struct station *station) * are now disconnected. */ - l_debug("%d", netdev_get_ifindex(station->netdev)); + l_debug("%u", netdev_get_ifindex(station->netdev)); station->preparing_roam = false; station->roam_no_orig_ap = false; @@ -1323,7 +1323,7 @@ static void station_roam_trigger_cb(struct l_timeout *timeout, void *user_data) { struct station *station = user_data; - l_debug("%d", netdev_get_ifindex(station->netdev)); + l_debug("%u", netdev_get_ifindex(station->netdev)); l_timeout_remove(station->roam_trigger_timeout); station->roam_trigger_timeout = NULL; @@ -1372,7 +1372,7 @@ static void station_roam_timeout_rearm(struct station *station, int seconds) static void station_lost_beacon(struct station *station) { - l_debug("%d", netdev_get_ifindex(station->netdev)); + l_debug("%u", netdev_get_ifindex(station->netdev)); if (station->state != STATION_STATE_ROAMING && station->state != STATION_STATE_CONNECTED)