From a3b64fe256ad5f1761923471b2335fb945e710de Mon Sep 17 00:00:00 2001 From: Martyn Russell Date: Tue, 25 Feb 2014 12:06:59 +0000 Subject: storage: Make g_message() calls g_debug() calls, output is unnecessary --- libmediaart/storage.c | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/libmediaart/storage.c b/libmediaart/storage.c index feb22f6..93cb533 100644 --- a/libmediaart/storage.c +++ b/libmediaart/storage.c @@ -140,8 +140,6 @@ storage_init (Storage *storage) { StoragePrivate *priv; - g_message ("Initializing Storage..."); - priv = STORAGE_GET_PRIVATE (storage); priv->mounts = g_node_new (NULL); @@ -163,8 +161,6 @@ storage_init (Storage *storage) g_signal_connect_object (priv->volume_monitor, "mount-added", G_CALLBACK (mount_added_cb), storage, 0); - g_message ("Mount monitors set up for to watch for added, removed and pre-unmounts..."); - /* Get all mounts and set them up */ if (!mounts_setup (storage)) { return; @@ -702,7 +698,7 @@ mounts_setup (Storage *storage) mounts = g_volume_monitor_get_mounts (priv->volume_monitor); if (!mounts) { - g_message ("No mounts found to iterate"); + g_debug ("No mounts found to iterate"); return TRUE; } @@ -752,19 +748,19 @@ mount_remove (Storage *storage, if (node) { info = node->data; - g_message ("Mount:'%s' with UUID:'%s' now unmounted from:'%s'", - name, - info->uuid, - mount_point); + g_debug ("Mount:'%s' with UUID:'%s' now unmounted from:'%s'", + name, + info->uuid, + mount_point); g_signal_emit (storage, signals[MOUNT_POINT_REMOVED], 0, info->uuid, mount_point, NULL); g_hash_table_remove (priv->mounts_by_uuid, info->uuid); mount_node_free (node); } else { - g_message ("Mount:'%s' now unmounted from:'%s' (was not tracked)", - name, - mount_point); + g_debug ("Mount:'%s' now unmounted from:'%s' (was not tracked)", + name, + mount_point); } g_free (name); -- cgit v1.2.1