From eb5374be4a946e0ff3f198408068ed5e4718f1fb Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Fri, 22 Apr 2011 19:00:58 +0300 Subject: fs-tests: integck: make -v switch work -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 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/fs-tests') 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) -- cgit v1.2.3