Fix message displayed when a call returns the wrong type
authorMike Gorse <mgorse@novell.com>
Thu, 23 Feb 2012 20:49:16 +0000 (14:49 -0600)
committerMike Gorse <mgorse@novell.com>
Thu, 23 Feb 2012 20:49:16 +0000 (14:49 -0600)
The message displayed by dbind for a type mismatch had its parameters
inverted.

dbind/dbind.c

index c2b6f5d..eabf7cd 100644 (file)
@@ -156,7 +156,7 @@ dbind_method_call_reentrant_va (DBusConnection *cnx,
        if (strcmp (p + 2, dbus_message_get_signature (reply)) != 0)
        {
            g_warning ("dbind: Call to \"%s\" returned signature %s; expected %s",
-                      method, p + 2, dbus_message_get_signature (reply));
+                      method, dbus_message_get_signature (reply), p + 2);
            if (opt_error)
                dbus_set_error (opt_error, DBUS_ERROR_INVALID_ARGS,
                                "Call to \"%s\" returned signature %s; expected %s",