g_file_get_contents(path, &contents, NULL, &error);
if( error ) {
- g_warning("GError: '%s'\n", error->message);
+ g_warning("GError: '%s'", error->message);
g_error_free(error);
}
if( contents != NULL ) {
lines = strsplit_no_copy(contents, '\n');
} else {
- g_warning("Badly formatted file found, ignoring: '%s'\n", path);
+ g_warning("Badly formatted file found, ignoring: '%s'", path);
return NULL;
}