3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

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.
This commit is contained in:
Denis Kenzior 2018-09-05 11:06:15 -05:00
parent 0f34e1a0c1
commit 5db022041c

View File

@ -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)