diff options
author | Dan Williams <dcbw@redhat.com> | 2011-01-23 20:51:48 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-01-23 20:51:48 -0600 |
commit | 16039244bb08cb4f62754c710be2052eaef32549 (patch) | |
tree | 689477732fdaf58c7e5b9f1774cd68519dcd896b /src/mm-plugin-base.c | |
parent | f85b014d843ecb2259e9b2e21f44c24ff8ff5fdf (diff) |
core: rework logging
Make it more flexible, add logging to a file, and absolute and
relative timestamps.
Diffstat (limited to 'src/mm-plugin-base.c')
-rw-r--r-- | src/mm-plugin-base.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mm-plugin-base.c b/src/mm-plugin-base.c index 5a86b977..8d32e2a5 100644 --- a/src/mm-plugin-base.c +++ b/src/mm-plugin-base.c @@ -36,6 +36,7 @@ #include "mm-utils.h" #include "libqcdm/src/commands.h" #include "libqcdm/src/utils.h" +#include "mm-log.h" static void plugin_init (MMPlugin *plugin_class); @@ -807,9 +808,9 @@ try_open (gpointer user_data) task_priv->full_id = g_signal_connect (task_priv->probe_port, "buffer-full", G_CALLBACK (port_buffer_full), task); - g_debug ("(%s): probe requested by plugin '%s'", - g_udev_device_get_name (port), - mm_plugin_get_name (MM_PLUGIN (task_priv->plugin))); + mm_dbg ("(%s): probe requested by plugin '%s'", + g_udev_device_get_name (port), + mm_plugin_get_name (MM_PLUGIN (task_priv->plugin))); mm_serial_port_flash (MM_SERIAL_PORT (task_priv->probe_port), 100, TRUE, flash_done, task); } |