[tracker/dbus-fd-experiment] tracker-store: Improved logging for incorrect d-bus message signatures
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/dbus-fd-experiment] tracker-store: Improved logging for incorrect d-bus message signatures
- Date: Mon, 21 Jun 2010 17:32:33 +0000 (UTC)
commit 49ba5d1084100a4c878b88f1ea71642eb1259e4a
Author: Martyn Russell <martyn lanedo com>
Date: Mon Jun 21 16:17:02 2010 +0100
tracker-store: Improved logging for incorrect d-bus message signatures
Include the *expected* signature
src/tracker-store/tracker-steroids.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/src/tracker-store/tracker-steroids.c b/src/tracker-store/tracker-steroids.c
index 076a637..ac0e14c 100644
--- a/src/tracker-store/tracker-steroids.c
+++ b/src/tracker-store/tracker-steroids.c
@@ -30,7 +30,8 @@
#include "tracker-steroids.h"
#include "tracker-store.h"
-#define UNKNOWN_METHOD_MESSAGE "Method \"%s\" with signature \"%s\" on interface \"%s\" doesn't exist"
+#define UNKNOWN_METHOD_MESSAGE "Method \"%s\" with signature \"%s\" on " \
+ "interface \"%s\" doesn't exist, expected \"%s\""
/**
* /!\ IMPORTANT WARNING /!\
@@ -376,7 +377,8 @@ steroids_query (TrackerSteroids *steroids,
UNKNOWN_METHOD_MESSAGE,
"Query",
dbus_message_get_signature (message),
- dbus_message_get_interface (message));
+ dbus_message_get_interface (message),
+ expected_signature);
dbus_connection_send (connection, reply, NULL);
tracker_dbus_request_failed (request_id,
@@ -385,7 +387,8 @@ steroids_query (TrackerSteroids *steroids,
UNKNOWN_METHOD_MESSAGE,
"Query",
dbus_message_get_signature (message),
- dbus_message_get_interface (message));
+ dbus_message_get_interface (message),
+ expected_signature);
dbus_message_unref (reply);
@@ -476,7 +479,8 @@ steroids_update (TrackerSteroids *steroids,
UNKNOWN_METHOD_MESSAGE,
"Update",
dbus_message_get_signature (message),
- dbus_message_get_interface (message));
+ dbus_message_get_interface (message),
+ DBUS_TYPE_UNIX_FD_AS_STRING);
dbus_connection_send (connection, reply, NULL);
dbus_message_unref (reply);
@@ -486,7 +490,8 @@ steroids_update (TrackerSteroids *steroids,
UNKNOWN_METHOD_MESSAGE,
"Update",
dbus_message_get_signature (message),
- dbus_message_get_interface (message));
+ dbus_message_get_interface (message),
+ DBUS_TYPE_UNIX_FD_AS_STRING);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]