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

@@ -223,7 +223,7 @@ void copy_file(const char *path_src, const char *path_dest)
while ((nb = fread(buffer, 1, sizeof(buffer), file_src)) > 0) {
if (nb != fwrite(buffer, 1, nb, file_dest)) {
printf("Error while copying file %s to %s\n", path_src, path_dest);
fprintf(stderr, "Error while copying file %s to %s\n", path_src, path_dest);
}
}
@@ -931,7 +931,7 @@ void get_text_size2(const PangoFontDescription *font,
*height_ink = rect_ink.height;
*height = rect.height;
*width = rect.width;
// printf("dimension : %d - %d\n", rect_ink.height, rect.height);
// fprintf(stderr, "dimension : %d - %d\n", rect_ink.height, rect.height);
g_object_unref(layout);
cairo_destroy(c);

View File

@@ -194,7 +194,7 @@ int uevent_init()
return -1;
}
printf("Kernel uevent interface initialized...\n");
fprintf(stderr, "Kernel uevent interface initialized...\n");
return uevent_fd;
}