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:
Denis Kenzior 2022-01-11 11:05:09 -06:00
parent 8b9442efe0
commit 5cb7591bc0
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

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