dbus: Suppress to show NULL string
wpa_s->dbus_groupobj_path is always NULL so suppress to show it. This was found by gcc 9.2.1 warning. dbus/dbus_new.c: In function ‘wpas_dbus_unregister_p2p_group’: dbus/dbus_new.c:4793:3: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 4793 | wpa_printf(MSG_DEBUG, | ^~~~~~~~~~~~~~~~~~~~~ 4794 | "%s: Group object '%s' already unregistered", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4795 | __func__, wpa_s->dbus_groupobj_path); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
parent
6807eee9ca
commit
b38c8c9cb2
1 changed files with 2 additions and 2 deletions
|
@ -4791,8 +4791,8 @@ void wpas_dbus_unregister_p2p_group(struct wpa_supplicant *wpa_s,
|
|||
|
||||
if (!wpa_s->dbus_groupobj_path) {
|
||||
wpa_printf(MSG_DEBUG,
|
||||
"%s: Group object '%s' already unregistered",
|
||||
__func__, wpa_s->dbus_groupobj_path);
|
||||
"%s: Group object has already unregistered",
|
||||
__func__);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue