summaryrefslogtreecommitdiff
path: root/tools/dbus-monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/dbus-monitor.c')
-rw-r--r--tools/dbus-monitor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/dbus-monitor.c b/tools/dbus-monitor.c
index 465515ba..9628c422 100644
--- a/tools/dbus-monitor.c
+++ b/tools/dbus-monitor.c
@@ -46,7 +46,7 @@ handler_func (DBusMessageHandler *handler,
static void
usage (char *name, int ecode)
{
- fprintf (stderr, "Usage: %s [--session]\n", name);
+ fprintf (stderr, "Usage: %s [--system]\n", name);
exit (ecode);
}
@@ -55,7 +55,7 @@ main (int argc, char *argv[])
{
DBusConnection *connection;
DBusError error;
- DBusBusType type = DBUS_BUS_SYSTEM;
+ DBusBusType type = DBUS_BUS_SESSION;
DBusMessageHandler *handler;
GMainLoop *loop;
int i;
@@ -65,7 +65,7 @@ main (int argc, char *argv[])
char *arg = argv[i];
if (!strcmp (arg, "--session"))
- type = DBUS_BUS_SESSION;
+ type = DBUS_BUS_SYSTEM;
else if (!strcmp (arg, "--help"))
usage (argv[0], 0);
else if (!strcmp (arg, "--"))