dbus: Add a debug print on fill_dict_with_properties() getter failures

This makes it easier to debug issues with D-Bus property getter
operations.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2015-04-29 20:43:23 +03:00 committed by Jouni Malinen
parent 8a78e227df
commit e8181e26ef

View file

@ -46,8 +46,13 @@ static dbus_bool_t fill_dict_with_properties(
goto error;
/* An error getting a property fails the request entirely */
if (!dsc->getter(&entry_iter, error, user_data))
if (!dsc->getter(&entry_iter, error, user_data)) {
wpa_printf(MSG_INFO,
"dbus: %s dbus_interface=%s dbus_property=%s getter failed",
__func__, dsc->dbus_interface,
dsc->dbus_property);
return FALSE;
}
if (!dbus_message_iter_close_container(dict_iter, &entry_iter))
goto error;