commit 5db022041c7d02f6b2833d9a1c67808d5e5c62fe
parent 0f34e1a0c1f51af458ca4cd8c18b682c427325e1
Author: Denis Kenzior <denkenz@gmail.com>
Date: Wed, 5 Sep 2018 11:06:15 -0500
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.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git 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)