From 16039244bb08cb4f62754c710be2052eaef32549 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Sun, 23 Jan 2011 20:51:48 -0600 Subject: core: rework logging Make it more flexible, add logging to a file, and absolute and relative timestamps. --- plugins/mm-plugin-generic.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'plugins/mm-plugin-generic.c') diff --git a/plugins/mm-plugin-generic.c b/plugins/mm-plugin-generic.c index 9704ae84..a27704b4 100644 --- a/plugins/mm-plugin-generic.c +++ b/plugins/mm-plugin-generic.c @@ -31,6 +31,7 @@ #include "mm-generic-cdma.h" #include "mm-errors.h" #include "mm-serial-parsers.h" +#include "mm-log.h" G_DEFINE_TYPE (MMPluginGeneric, mm_plugin_generic, MM_TYPE_PLUGIN_BASE) @@ -127,10 +128,10 @@ grab_port (MMPluginBase *base, g_set_error (error, 0, 0, "Could not get port's sysfs file."); return NULL; } else { - g_message ("%s: (%s/%s) WARNING: missing udev 'device' file", - mm_plugin_get_name (MM_PLUGIN (base)), - subsys, - name); + mm_warn ("%s: (%s/%s) WARNING: missing udev 'device' file", + mm_plugin_get_name (MM_PLUGIN (base)), + subsys, + name); } } -- cgit v1.2.3-70-g09d2