summaryrefslogtreecommitdiff
path: root/tools/up-tool.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2010-11-01 11:28:31 +0000
committerRichard Hughes <richard@hughsie.com>2010-11-01 11:28:31 +0000
commit59893663fbc0b9b5951b69b99a849d4ae5a2f3fd (patch)
tree095c1acca94e25920a64635b849d4de654c1d984 /tools/up-tool.c
parented34986e08fc45e5337c3edae181c3caa23c99d2 (diff)
Port from EggDebug to the GLib built-in logging framework
Diffstat (limited to 'tools/up-tool.c')
-rw-r--r--tools/up-tool.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/up-tool.c b/tools/up-tool.c
index d698c7c..9be5588 100644
--- a/tools/up-tool.c
+++ b/tools/up-tool.c
@@ -35,8 +35,6 @@
#include "up-device.h"
#include "up-wakeups.h"
-#include "egg-debug.h"
-
static GMainLoop *loop;
static gboolean opt_monitor_detail = FALSE;
@@ -275,7 +273,6 @@ main (int argc, char **argv)
context = g_option_context_new ("UPower tool");
g_option_context_add_main_entries (context, entries, NULL);
- g_option_context_add_group (context, egg_debug_get_option_group ());
g_option_context_parse (context, &argc, &argv, NULL);
g_option_context_free (context);
@@ -306,7 +303,7 @@ main (int argc, char **argv)
GPtrArray *devices;
ret = up_client_enumerate_devices_sync (client, NULL, &error);
if (!ret) {
- egg_warning ("failed to enumerate: %s", error->message);
+ g_warning ("failed to enumerate: %s", error->message);
goto out;
}
devices = up_client_get_devices (client);
@@ -333,7 +330,7 @@ main (int argc, char **argv)
if (opt_monitor || opt_monitor_detail) {
ret = up_client_enumerate_devices_sync (client, NULL, &error);
if (!ret) {
- egg_warning ("failed to enumerate: %s", error->message);
+ g_warning ("failed to enumerate: %s", error->message);
goto out;
}
if (!up_tool_do_monitor (client))