mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
treewide: Use __func__ when possible
Instead of hard-coding the function name in l_warn/l_error statements, use '__func__'
This commit is contained in:
parent
8b9442efe0
commit
5cb7591bc0
@ -927,7 +927,7 @@ void scan_periodic_start(uint64_t wdev_id, scan_trigger_func_t trigger,
|
||||
sc = l_queue_find(scan_contexts, scan_context_match, &wdev_id);
|
||||
|
||||
if (!sc) {
|
||||
l_error("scan_periodic_start called without scan_wdev_add");
|
||||
l_error("%s called without scan_wdev_add", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -664,7 +664,7 @@ static void wsc_check_can_connect(struct wsc_station_dbus *wsc,
|
||||
case STATION_STATE_AUTOCONNECT_QUICK:
|
||||
case STATION_STATE_AUTOCONNECT_FULL:
|
||||
case STATION_STATE_ROAMING:
|
||||
l_warn("wsc_check_can_connect: invalid station state");
|
||||
l_warn("%s: invalid station state", __func__);
|
||||
break;
|
||||
}
|
||||
error:
|
||||
|
Loading…
Reference in New Issue
Block a user