cpumf/chcpumf: Use util_opt_print_parse_error function

Use function util_opt_print_parse_error() instead of fprintf to stderr.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Thomas Richter
2021-04-14 09:20:59 +02:00
committed by Jan Höppner
parent 44de579311
commit 1d9e7b614c

View File

@@ -181,10 +181,8 @@ static int parse_args(int argc, char **argv)
case 'V':
verbose = 1;
break;
case '?':
fprintf(stderr, "One or more options are not valid\n");
fprintf(stderr, "Try 'chcpumf --help' for more"
" information\n");
default:
util_opt_print_parse_error(opt, argv);
exit(EXIT_FAILURE);
}
}