D-Bus: Write Get/Set property name in debug log
authorJouni Malinen <j@w1.fi>
Wed, 31 Dec 2014 22:59:20 +0000 (00:59 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 2 Jan 2015 20:50:26 +0000 (22:50 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/dbus/dbus_new_helpers.c

index 58fdb94..9086e4f 100644 (file)
@@ -270,10 +270,13 @@ properties_get_or_set(DBusMessage *message, DBusMessageIter *iter,
        }
 
        if (os_strncmp(WPA_DBUS_PROPERTIES_GET, method,
-                      WPAS_DBUS_METHOD_SIGNAL_PROP_MAX) == 0)
+                      WPAS_DBUS_METHOD_SIGNAL_PROP_MAX) == 0) {
+               wpa_printf(MSG_MSGDUMP, "%s: Get(%s)", __func__, property);
                return properties_get(message, property_dsc,
                                      obj_dsc->user_data);
+       }
 
+       wpa_printf(MSG_MSGDUMP, "%s: Set(%s)", __func__, property);
        return properties_set(message, property_dsc, obj_dsc->user_data);
 }