Handle the newline in DEBUG_N() macro instead of adding one
[geeqie.git] / src / utilops.c
index 3800aea..bbb9c02 100644 (file)
@@ -1370,7 +1370,7 @@ static gint file_util_safe_number(gint64 free_space)
                fd = list->data;
                list = g_list_remove(list, fd);
 
-               DEBUG_1("expunging from trash for space: %s\n", fd->name);
+               DEBUG_1("expunging from trash for space: %s", fd->name);
                if (!unlink_file(fd->path) && !warned)
                        {
                        file_util_warning_dialog(_("Delete failed"),
@@ -1428,7 +1428,7 @@ static gint file_util_unlink(FileData *fd)
 
        if (!isdir(options->file_ops.safe_delete_path))
                {
-               DEBUG_1("creating trash: %s\n", options->file_ops.safe_delete_path);
+               DEBUG_1("creating trash: %s", options->file_ops.safe_delete_path);
                if (!options->file_ops.safe_delete_path || !mkdir_utf8(options->file_ops.safe_delete_path, 0755))
                        {
                        result = _("Could not create folder");
@@ -1443,7 +1443,7 @@ static gint file_util_unlink(FileData *fd)
                dest = file_util_safe_dest(fd->path);
                if (dest)
                        {
-                       DEBUG_1("safe deleting %s to %s\n", fd->path, dest);
+                       DEBUG_1("safe deleting %s to %s", fd->path, dest);
                        success = move_file(fd->path, dest);
                        }
                else
@@ -2101,7 +2101,7 @@ static void file_util_rename_multiple(RenameDataMult *rd)
                                }
                        else
                                {
-                               DEBUG_1("closed by #%d\n", row);
+                               DEBUG_1("closed by #%d", row);
 
                                file_dialog_close(rd->fdlg);
                                }
@@ -3183,7 +3183,7 @@ FileData *file_util_delete_dir_empty_path(FileData *fd, gint real_content, gint
        GList *work;
        FileData *fail = NULL;
 
-       DEBUG_1("deltree into: %s\n", fd->path);
+       DEBUG_1("deltree into: %s", fd->path);
 
        level++;
        if (level > UTILITY_DELETE_MAX_DEPTH)
@@ -3213,7 +3213,7 @@ FileData *file_util_delete_dir_empty_path(FileData *fd, gint real_content, gint
                lfd = work->data;
                work = work->next;
 
-               DEBUG_1("deltree child: %s\n", lfd->path);
+               DEBUG_1("deltree child: %s", lfd->path);
 
                if (real_content && !islink(lfd->path))
                        {
@@ -3233,7 +3233,7 @@ FileData *file_util_delete_dir_empty_path(FileData *fd, gint real_content, gint
                fail = file_data_ref(fd);
                }
 
-       DEBUG_1("deltree done: %s\n", fd->path);
+       DEBUG_1("deltree done: %s", fd->path);
 
        return fail;
 }
@@ -3280,7 +3280,7 @@ static void file_util_delete_dir_ok_cb(GenericDialog *gd, gpointer data)
                        fd = work->data;
                        work = work->next;
 
-                       DEBUG_1("deltree unlink: %s\n", fd->path);
+                       DEBUG_1("deltree unlink: %s", fd->path);
 
                        if (islink(fd->path))
                                {