Removed debug messages

This commit is contained in:
Jesse van den Kieboom 2006-01-08 16:35:16 +00:00
parent ae389dfe86
commit 71901d2d1a
1 changed files with 4 additions and 4 deletions

View File

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