Skip to content

Commit fc16e90

Browse files
committed
parted: Print the Fixing... message to stderr
Otherwise it messes up stdout of things like --json Thanks to Mikael Q for reporting this.
1 parent c5bd6fa commit fc16e90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parted/ui.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ exception_handler (PedException* ex)
645645
/* script-mode and fix? */
646646
int fix_is_an_option = (ex->options & PED_EXCEPTION_FIX);
647647
if (opt_script_mode && opt_fix_mode && fix_is_an_option) {
648-
printf ("Fixing, due to --fix\n");
648+
fprintf (stderr, "Fixing, due to --fix\n");
649649
return PED_EXCEPTION_FIX;
650650
}
651651

0 commit comments

Comments
 (0)