From 9e317751a48a6c5b6cfb5b38510156af4b6ccd8f Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 4 Jan 2011 14:27:32 +0000 Subject: [PATCH] Get member name from the method call message, not the reply, for warnings Bug: https://bugs.freedesktop.org/show_bug.cgi?id=29884 --- dbus/dbus-gobject.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dbus/dbus-gobject.c b/dbus/dbus-gobject.c index b069f52..032f009 100644 --- a/dbus/dbus-gobject.c +++ b/dbus/dbus-gobject.c @@ -2947,7 +2947,8 @@ dbus_g_method_return (DBusGMethodInvocation *context, ...) { if (!_dbus_gvalue_marshal (&iter, &value)) g_warning ("failed to marshal parameter %d for method %s", - i, dbus_message_get_member (reply)); + i, dbus_message_get_member ( + dbus_g_message_get_message (context->message))); } } va_end (args); -- 1.7.2.3