diff options
author | Benjamin Otte <otte@redhat.com> | 2015-11-06 18:41:01 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-11-06 18:41:01 +0100 |
commit | 510940f241324dbcb3e233aade268a307aac1560 (patch) | |
tree | 5aaf8fc8e22c9bf54841852bc21b1a716a0af3e6 /rsvg-convert.c | |
parent | d8ed521cc3e7740a1bf04646dd8074f23e5e630c (diff) | |
download | librsvg-510940f241324dbcb3e233aade268a307aac1560.tar.gz |
rsvg-convert: Use g_printerr()
Diffstat (limited to 'rsvg-convert.c')
-rw-r--r-- | rsvg-convert.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/rsvg-convert.c b/rsvg-convert.c index 53c57e12..2befdff0 100644 --- a/rsvg-convert.c +++ b/rsvg-convert.c @@ -202,7 +202,7 @@ main (int argc, char **argv) if (output != NULL) { output_file = fopen (output, "wb"); if (!output_file) { - fprintf (stderr, _("Error saving to file: %s\n"), output); + g_printerr (_("Error saving to file: %s\n"), output); g_free (output); exit (1); } @@ -218,7 +218,7 @@ main (int argc, char **argv) n_args = 1; using_stdin = TRUE; } else if (n_args > 1 && (!format || !(!strcmp (format, "ps") || !strcmp (format, "eps") || !strcmp (format, "pdf")))) { - fprintf (stderr, _("Multiple SVG files are only allowed for PDF and (E)PS output.\n")); + g_printerr (_("Multiple SVG files are only allowed for PDF and (E)PS output.\n")); exit (1); } @@ -300,16 +300,16 @@ main (int argc, char **argv) g_clear_object (&file); if (error != NULL) { - fprintf (stderr, _("Error reading SVG:")); + g_printerr (_("Error reading SVG:")); display_error (error); - fprintf (stderr, "\n"); + g_printerr ("\n"); exit (1); } export_lookup_id = get_lookup_id_from_command_line (export_id); if (export_lookup_id != NULL && !rsvg_handle_has_sub (rsvg, export_lookup_id)) { - fprintf (stderr, _("File %s does not have an object with id \"%s\"\n"), args[i], export_id); + g_printerr (_("File %s does not have an object with id \"%s\"\n"), args[i], export_id); exit (1); } @@ -317,7 +317,7 @@ main (int argc, char **argv) struct RsvgSizeCallbackData size_data; if (!rsvg_handle_get_dimensions_sub (rsvg, &dimensions, export_lookup_id)) - fprintf (stderr, "Could not get dimensions for file %s\n", args[i]); + g_printerr ("Could not get dimensions for file %s\n", args[i]); /* if both are unspecified, assume user wants to zoom the image in at least 1 dimension */ if (width == -1 && height == -1) { @@ -384,7 +384,7 @@ main (int argc, char **argv) #endif #endif else { - fprintf (stderr, _("Unknown output format.")); + g_printerr (_("Unknown output format.")); exit (1); } @@ -408,7 +408,7 @@ main (int argc, char **argv) RsvgPositionData pos; if (!rsvg_handle_get_position_sub (rsvg, &pos, export_lookup_id)) { - fprintf (stderr, _("File %s does not have an object with id \"%s\"\n"), args[i], export_id); + g_printerr (_("File %s does not have an object with id \"%s\"\n"), args[i], export_id); exit (1); } |