[PATCH 10/13] fs-tests: integck: make -v switch work
Artem Bityutskiy
dedekind1 at gmail.com
Fri Apr 22 13:25:21 EDT 2011
From: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
-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 <Artem.Bityutskiy at nokia.com>
---
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)
--
1.7.2.3
More information about the linux-mtd
mailing list