cpumf/chcpumf.c: Print verbose message on success

Print verbose message on success only.

Reviewed-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
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
2020-05-12 10:21:55 +02:00
committed by Jan Höppner
parent d2fc700b73
commit ce02dd7167

View File

@@ -129,7 +129,7 @@ static int write_sfb(unsigned long min, unsigned long max)
linux_error(PERF_SFB_SIZE);
rc = EXIT_FAILURE;
}
if (verbose)
if (verbose && rc != EXIT_FAILURE)
fprintf(stderr, "Sampling buffer sizes:\n"
" Minimum:%7ld sample-data-blocks\n"
" Maximum:%7ld sample-data-blocks\n",