From 59893663fbc0b9b5951b69b99a849d4ae5a2f3fd Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 1 Nov 2010 11:28:31 +0000 Subject: Port from EggDebug to the GLib built-in logging framework --- tools/Makefile.am | 3 +-- tools/egg-debug.c | 1 - tools/egg-debug.h | 1 - tools/up-tool.c | 7 ++----- 4 files changed, 3 insertions(+), 9 deletions(-) delete mode 120000 tools/egg-debug.c delete mode 120000 tools/egg-debug.h (limited to 'tools') diff --git a/tools/Makefile.am b/tools/Makefile.am index d477e57..55a0f06 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -2,6 +2,7 @@ INCLUDES = \ -DUP_COMPILATION \ + -DG_LOG_DOMAIN=\"UPower\" \ -I$(top_srcdir) \ -I$(top_srcdir)/libupower-glib \ $(DBUS_GLIB_CFLAGS) \ @@ -13,8 +14,6 @@ UPOWER_LIBS = $(top_builddir)/libupower-glib/libupower-glib.la bin_PROGRAMS = upower upower_SOURCES = \ - egg-debug.c \ - egg-debug.h \ up-tool.c \ $(BUILT_SOURCES) diff --git a/tools/egg-debug.c b/tools/egg-debug.c deleted file mode 120000 index 0a3eb62..0000000 --- a/tools/egg-debug.c +++ /dev/null @@ -1 +0,0 @@ -../src/egg-debug.c \ No newline at end of file diff --git a/tools/egg-debug.h b/tools/egg-debug.h deleted file mode 120000 index db811d2..0000000 --- a/tools/egg-debug.h +++ /dev/null @@ -1 +0,0 @@ -../src/egg-debug.h \ No newline at end of file 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)) -- cgit v1.2.1