eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 5cb7591bc04d83e22c212697c9bcb809b158c20a
parent 8b9442efe0d5ebd8c1abcb961eb84ebd6b1292bc
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Tue, 11 Jan 2022 11:05:09 -0600

treewide: Use __func__ when possible

Instead of hard-coding the function name in l_warn/l_error statements,
use '__func__'

Diffstat:
Msrc/scan.c | 2+-
Msrc/wsc.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/scan.c b/src/scan.c @@ -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; } diff --git a/src/wsc.c b/src/wsc.c @@ -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: