[Xfce4-commits] <xfce4-mount-plugin:master> No need to add \n, DBG() and TRACE() takes care of that

Landry Breuil noreply at xfce.org
Thu Apr 12 11:24:05 CEST 2012


Updating branch refs/heads/master
         to 590352a5570703f6533767139d1fabf42cf75bb7 (commit)
       from 18a314fcfdb8e1bbf9d50f68e21db73279614aaa (commit)

commit 590352a5570703f6533767139d1fabf42cf75bb7
Author: Landry Breuil <landry at xfce.org>
Date:   Thu Apr 12 11:22:44 2012 +0200

    No need to add \n, DBG() and TRACE() takes care of that

 panel-plugin/devices.c      |   12 ++++++------
 panel-plugin/mount-plugin.c |    8 ++++----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/panel-plugin/devices.c b/panel-plugin/devices.c
index 7a11692..2b26f5e 100644
--- a/panel-plugin/devices.c
+++ b/panel-plugin/devices.c
@@ -559,13 +559,13 @@ exclude_filesystem (GPtrArray *excluded_FSs, gchar *mountpoint, gchar *device)
 {
     unsigned int i;
 
-    TRACE("Entering exclude_filesystems\n");
+    TRACE("Entering exclude_filesystems");
 
     g_assert(excluded_FSs != NULL);
 
     for (i=0; i < excluded_FSs->len; i++)
     {
-        DBG("Comparing %s and %s to %s\n", mountpoint, device, (gchar *) g_ptr_array_index(excluded_FSs, i));
+        DBG("Comparing %s and %s to %s", mountpoint, device, (gchar *) g_ptr_array_index(excluded_FSs, i));
         if (g_ascii_strcasecmp (
                 (gchar *) g_ptr_array_index(excluded_FSs, i), mountpoint)==0
             ||
@@ -575,7 +575,7 @@ exclude_filesystem (GPtrArray *excluded_FSs, gchar *mountpoint, gchar *device)
             return TRUE;
     }
 
-    TRACE("Leaving exclude_filesystems with FALSE\n");
+    TRACE("Leaving exclude_filesystems with FALSE");
 
     return FALSE;
 }
@@ -602,7 +602,7 @@ disks_refresh(GPtrArray * pdisks, GPtrArray *excluded_FSs)
     t_mount_info * mount_info;
     t_disk * pdisk ;
 
-    TRACE("Entering disks_refresh\n");
+    TRACE("Entering disks_refresh");
 
     /* remove t_mount_info for all devices */
     disks_free_mount_info (pdisks);
@@ -622,12 +622,12 @@ disks_refresh(GPtrArray * pdisks, GPtrArray *excluded_FSs)
 #ifdef HAVE_GETMNTENT
     for (pmntent=getmntent(fmtab); pmntent!=NULL; pmntent=getmntent(fmtab)) {
 
-        DBG (" have entry: %s on %s \n", pmntent->mnt_fsname, pmntent->mnt_dir );
+        DBG (" have entry: %s on %s", pmntent->mnt_fsname, pmntent->mnt_dir );
 
         statfs (pmntent->mnt_dir, pstatfs);
 #elif HAVE_GETMNTINFO
     for (i = 0; i < nb_mounted_fs ; i++) {
-        DBG (" have entry: %s on %s : type %s\n", pstatfs[i].f_mntfromname, pstatfs[i].f_mntonname, pstatfs[i].f_fstypename );
+        DBG (" have entry: %s on %s : type %s", pstatfs[i].f_mntfromname, pstatfs[i].f_mntonname, pstatfs[i].f_fstypename );
 #endif
 
         /* if we got the stat and the block number is non-zero */
diff --git a/panel-plugin/mount-plugin.c b/panel-plugin/mount-plugin.c
index 951718b..a5f99f0 100644
--- a/panel-plugin/mount-plugin.c
+++ b/panel-plugin/mount-plugin.c
@@ -281,7 +281,7 @@ mounter_data_new (t_mounter *mt)
     /* remove unwanted file systems from list */
     if (mt->exclude_FSs) {
         array = g_ptr_array_new();
-        DBG("excluded_filesystems=%s\n", mt->excluded_filesystems);
+        DBG("excluded_filesystems=%s", mt->excluded_filesystems);
         res = seperate_list(array, mt->excluded_filesystems);
         for (i=0; i<array->len; i++) {
             dev_mp = (char*) g_ptr_array_index(array, i);
@@ -351,7 +351,7 @@ mounter_refresh (t_mounter * mt)
     umount = g_strdup (mt->umount_command);
     icon = g_strdup (mt->icon);
     excl_filesystems = g_strdup (mt->excluded_filesystems);
-    DBG ("Changed icon value from '%s' to '%s'.\n", mt->icon, icon);
+    DBG ("Changed icon value from '%s' to '%s'.", mt->icon, icon);
     msg_dlg = mt->message_dialog;
     incl_NFSs = mt->include_NFSs;
     excl_FSs = mt->exclude_FSs;
@@ -361,7 +361,7 @@ mounter_refresh (t_mounter * mt)
 
     mounter_data_new (mt);
     mt->icon = g_strdup (icon);
-    DBG ("Changed icon value from '%s' to '%s'.\n", icon, mt->icon);
+    DBG ("Changed icon value from '%s' to '%s'.", icon, mt->icon);
     mt->mount_command = g_strdup (mount);
     mt->umount_command = g_strdup (umount);
     mt->excluded_filesystems = g_strdup (excl_filesystems);
@@ -913,7 +913,7 @@ mounter_create_options (XfcePanelPlugin *plugin, t_mounter *mt)
                     GTK_FILL, GTK_SHRINK, 0, 0);
 
     md->string_mount_command = gtk_entry_new ();
-    DBG("mt->mount_command: %s\n", mt->mount_command);
+    DBG("mt->mount_command: %s", mt->mount_command);
     gtk_entry_set_text (GTK_ENTRY(md->string_mount_command ),
                     g_strdup(mt->mount_command ));
     gtk_widget_show (md->string_mount_command );


More information about the Xfce4-commits mailing list