aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-05 18:26:01 -0400
committerTed Gould <ted@canonical.com>2009-10-05 18:26:01 -0400
commite3136699a6d00c24715326e2c9016f8b04425860 (patch)
tree30450b1153e5ed2eaefb562afd5e80ff73b723b4
parent8f0b3d1a97d235c9da9601a00222e5b51be3738b (diff)
downloadlibdbusmenu-e3136699a6d00c24715326e2c9016f8b04425860.tar.gz
libdbusmenu-e3136699a6d00c24715326e2c9016f8b04425860.tar.bz2
libdbusmenu-e3136699a6d00c24715326e2c9016f8b04425860.zip
Making all of the error printouts actually go to STD ERR
-rw-r--r--tools/dbusmenu-dumper.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/dbusmenu-dumper.c b/tools/dbusmenu-dumper.c
index 9768b7d..a4075f1 100644
--- a/tools/dbusmenu-dumper.c
+++ b/tools/dbusmenu-dumper.c
@@ -55,7 +55,7 @@ option_dbusobject (const gchar * arg, const gchar * value, gpointer data, GError
void
usage (void)
{
- g_print("dbusmenu-dumper --dbus-name=<name> --dbus-object=<object>\n");
+ g_printerr("dbusmenu-dumper --dbus-name=<name> --dbus-object=<object>\n");
return;
}
@@ -75,32 +75,32 @@ main (int argc, char ** argv)
g_option_context_add_main_entries(context, general_options, "dbusmenu-dumper");
if (!g_option_context_parse(context, &argc, &argv, &error)) {
- g_print("option parsing failed: %s\n", error->message);
+ g_printerr("option parsing failed: %s\n", error->message);
g_error_free(error);
return 1;
}
if (dbusname == NULL) {
- g_print("ERROR: dbus-name not specified\n");
+ g_printerr("ERROR: dbus-name not specified\n");
usage();
return 1;
}
if (dbusobject == NULL) {
- g_print("ERROR: dbus-object not specified\n");
+ g_printerr("ERROR: dbus-object not specified\n");
usage();
return 1;
}
DbusmenuClient * client = dbusmenu_client_new (dbusname, dbusobject);
if (client == NULL) {
- g_print("ERROR: Unable to create Dbusmenu Client\n");
+ g_printerr("ERROR: Unable to create Dbusmenu Client\n");
return 1;
}
DbusmenuMenuitem * root = dbusmenu_client_get_root(client);
if (root == NULL) {
- g_print("ERROR: Unable to create Dbusmenu Root\n");
+ g_printerr("ERROR: Unable to create Dbusmenu Root\n");
return 1;
}