fix erroneous debug text, debug output (and style)

This commit is contained in:
Paul 2015-10-15 07:28:47 +01:00
parent a04d186bb8
commit c014711110

View file

@ -239,12 +239,12 @@ static void write_cache_to_file(void)
g_node_append(contactsnode, contactnode);
}
/* Actual writing and cleanup */
xml_write_tree(rootnode, pfile->fp);
if(prefs_file_close(pfile) < 0)
debug_print("GData plugin error: Failed to write file " GDATA_CONTACTS_FILENAME "\n");
debug_print("GData plugin error: Wrote cache to file " GDATA_CONTACTS_FILENAME "\n");
/* Actual writing and cleanup */
xml_write_tree(rootnode, pfile->fp);
if (prefs_file_close(pfile) < 0)
debug_print("GData plugin error: Failed to write file " GDATA_CONTACTS_FILENAME "\n");
else
debug_print("GData plugin: Wrote cache to file " GDATA_CONTACTS_FILENAME "\n");
/* Free XML tree */
xml_free_tree(rootnode);