summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChengwei Yang <chengwei.yang@intel.com>2013-06-26 10:21:31 +0800
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-10-08 11:15:35 +0100
commit1451f946c153fffe85c2a0a9d52446ff21b42fe8 (patch)
tree9648d0f64bdf775c5149bbab36abbfdb1906840e /tools
parent4b4d0f969bd42bfa0f26f3cd67bffe01782a0ced (diff)
downloaddbus-1451f946c153fffe85c2a0a9d52446ff21b42fe8.tar.gz
dbus-monitor: remove redundant match rules
Currently, DBus Specification only consists of four message types, so to monitor all the types of message, no need to match all of them but just left it empty is OK. Signed-off-by: Chengwei Yang <chengwei.yang@intel.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=66107 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/dbus-monitor.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/tools/dbus-monitor.c b/tools/dbus-monitor.c
index cf17f642..1aa885f7 100644
--- a/tools/dbus-monitor.c
+++ b/tools/dbus-monitor.c
@@ -383,22 +383,7 @@ main (int argc, char *argv[])
else
{
dbus_bus_add_match (connection,
- EAVESDROPPING_RULE ",type='signal'",
- &error);
- if (dbus_error_is_set (&error))
- goto lose;
- dbus_bus_add_match (connection,
- EAVESDROPPING_RULE ",type='method_call'",
- &error);
- if (dbus_error_is_set (&error))
- goto lose;
- dbus_bus_add_match (connection,
- EAVESDROPPING_RULE ",type='method_return'",
- &error);
- if (dbus_error_is_set (&error))
- goto lose;
- dbus_bus_add_match (connection,
- EAVESDROPPING_RULE ",type='error'",
+ EAVESDROPPING_RULE,
&error);
if (dbus_error_is_set (&error))
goto lose;