From patchwork Fri Apr 22 17:25:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [10/13] fs-tests: integck: make -v switch work Date: Fri, 22 Apr 2011 07:25:21 -0000 From: Artem Bityutskiy X-Patchwork-Id: 92562 Message-Id: <1303493124-7619-11-git-send-email-dedekind1@gmail.com> To: MTD list Cc: Adrian Hunter From: Artem Bityutskiy -v (verbose) switch is supposed to turn power cut testing error messages on/off. However, it does not work because the messages are printed even if -v was not specified. This patch fixes it. Signed-off-by: Artem Bityutskiy --- tests/fs-tests/integrity/integck.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c index 0f48377..372a348 100644 --- a/tests/fs-tests/integrity/integck.c +++ b/tests/fs-tests/integrity/integck.c @@ -70,7 +70,7 @@ } while(0) #define pcv(fmt, ...) do { \ - if (args.power_cut_mode) \ + if (args.power_cut_mode && args.verbose) \ normsg(fmt " (line %d)", ##__VA_ARGS__, __LINE__); \ } while(0)