summaryrefslogtreecommitdiff
path: root/parted/ui.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-10-12 22:16:35 +0100
committerJim Meyering <meyering@redhat.com>2011-10-14 19:12:18 +0200
commitf09c0b86bbdf3a3bf51c1b826b3e1c46514feb58 (patch)
tree340ce4f06432c29f3f8faf789a2b01061b2fbafa /parted/ui.c
parentfae153a5d7c1c029ab600ac60d47e2d3c86b6976 (diff)
downloadparted-f09c0b86bbdf3a3bf51c1b826b3e1c46514feb58.tar.gz
parted: write a few errors and warnings to stderr instead of stdout
Diffstat (limited to 'parted/ui.c')
-rw-r--r--parted/ui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/parted/ui.c b/parted/ui.c
index 56c0304..77bb24c 100644
--- a/parted/ui.c
+++ b/parted/ui.c
@@ -340,7 +340,7 @@ sa_sigint_handler (int signum, siginfo_t* info, void *ucontext)
static void
sa_sigsegv_handler (int signum, siginfo_t* info, void* ucontext)
{
- printf (bug_msg, VERSION);
+ fprintf (stderr, bug_msg, VERSION);
_dump_history ();
if (!info)
@@ -375,7 +375,7 @@ sa_sigsegv_handler (int signum, siginfo_t* info, void* ucontext)
static void
sa_sigfpe_handler (int signum, siginfo_t* info, void* ucontext)
{
- printf (bug_msg, VERSION);
+ fprintf (stderr, bug_msg, VERSION);
_dump_history ();
if (!info)
@@ -439,7 +439,7 @@ sa_sigfpe_handler (int signum, siginfo_t* info, void* ucontext)
static void
sa_sigill_handler (int signum, siginfo_t* info, void* ucontext)
{
- printf (bug_msg, VERSION);
+ fprintf (stderr, bug_msg, VERSION);
_dump_history ();
if (!info)
@@ -617,7 +617,7 @@ _print_exception_text (PedException* ex)
wipe_line ();
if (ex->type == PED_EXCEPTION_BUG) {
- printf (bug_msg, VERSION);
+ fprintf (stderr, bug_msg, VERSION);
text = str_list_create ("\n", ex->message, "\n\n", NULL);
} else {
text = str_list_create (