diff --git a/gnoemoe/gm-editor.c b/gnoemoe/gm-editor.c index 68b5a84..b16c134 100644 --- a/gnoemoe/gm-editor.c +++ b/gnoemoe/gm-editor.c @@ -233,7 +233,7 @@ gm_editor_write_lines(GmEditor *editor) { GList *line; if (fd == -1) { - GM_DEBUG("Couldn't open file"); + gm_debug_msg(DEBUG_ALWAYS, "Couldn't open file"); g_free(tmp); return NULL; } @@ -241,15 +241,15 @@ gm_editor_write_lines(GmEditor *editor) { // Write lines for (line = editor->priv->lines; line; line = line->next) { if (write(fd, line->data, strlen(line->data)) == -1) { - GM_DEBUG("Writing failed"); + gm_debug_msg(DEBUG_ALWAYS, "Writing failed"); break; } else { - GM_DEBUG("Written: %s", line->data); + gm_debug_msg(DEBUG_ALWAYS, "Written: %s", line->data); } if (line->next) { if (write(fd, "\n", 1) == -1) { - GM_DEBUG("Writing failed"); + gm_debug_msg(DEBUG_ALWAYS, "Writing failed"); break; } }