Print logging output consistently to stderr

This commit is contained in:
o9000
2017-09-01 18:11:35 +02:00
parent 61c61c8844
commit b7691afb8d
15 changed files with 53 additions and 52 deletions

View File

@@ -1839,7 +1839,7 @@ void load_desktop_file(const char *file, gboolean selected)
if (pixbuf)
g_object_unref(pixbuf);
} else {
printf("Could not load %s\n", file);
fprintf(stderr, "Could not load %s\n", file);
GdkPixbuf *pixbuf = load_icon(DEFAULT_ICON);
GtkTreeIter iter;
gtk_list_store_append(store, &iter);
@@ -1897,7 +1897,7 @@ void load_desktop_entry(const char *file, GList **entries)
DesktopEntry *entry = calloc(1, sizeof(DesktopEntry));
if (!read_desktop_file(file, entry))
printf("Could not load %s\n", file);
fprintf(stderr, "Could not load %s\n", file);
if (entry->hidden_from_menus) {
free(entry);
return;

View File

@@ -981,7 +981,7 @@ unsigned short checksum_txt(FILE *f)
void config_save_file(const char *path)
{
printf("config_save_file : %s\n", path);
fprintf(stderr, "config_save_file : %s\n", path);
FILE *fp;
if ((fp = fopen(path, "w+t")) == NULL)