From ce02dd7167f42bf484266735e87581d3049fc01d Mon Sep 17 00:00:00 2001 From: Thomas Richter Date: Tue, 12 May 2020 10:21:55 +0200 Subject: [PATCH] cpumf/chcpumf.c: Print verbose message on success MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Print verbose message on success only. Reviewed-by: Sumanth Korikkar Signed-off-by: Thomas Richter Signed-off-by: Jan Höppner --- cpumf/chcpumf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpumf/chcpumf.c b/cpumf/chcpumf.c index 561c121d..1f9f0ed8 100644 --- a/cpumf/chcpumf.c +++ b/cpumf/chcpumf.c @@ -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",