diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-10-12 22:16:34 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-10-14 18:32:44 +0200 |
commit | fae153a5d7c1c029ab600ac60d47e2d3c86b6976 (patch) | |
tree | 7e01cbca999c04fc7f99f491baaac49cee8aa68e /parted/ui.c | |
parent | 959d4c2875216d26b2d113cc7119dd8623493e34 (diff) | |
download | parted-fae153a5d7c1c029ab600ac60d47e2d3c86b6976.tar.gz |
parted: strlist print functions can now send output to any FILE *
This changes the two strlist print functions so that instead of just
sending output to stdout, they can send it to any FILE *. Now the
caller can send errors to stderr instead of stdout.
Diffstat (limited to 'parted/ui.c')
-rw-r--r-- | parted/ui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parted/ui.c b/parted/ui.c index 6d2fde1..56c0304 100644 --- a/parted/ui.c +++ b/parted/ui.c @@ -625,7 +625,7 @@ _print_exception_text (PedException* ex) ": ", ex->message, "\n", NULL); } - str_list_print_wrap (text, screen_width (), 0, 0); + str_list_print_wrap (text, screen_width (), 0, 0, stderr); str_list_destroy (text); } @@ -1541,7 +1541,7 @@ interactive_mode (PedDevice** dev, Command* cmd_list[]) print_using_dev (*dev); list = str_list_create (_(banner_msg), NULL); - str_list_print_wrap (list, screen_width (), 0, 0); + str_list_print_wrap (list, screen_width (), 0, 0, stdout); str_list_destroy (list); while (1) { |