fs-tests: integck: make -v switch work
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 22 Apr 2011 16:00:58 +0000 (19:00 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 24 Apr 2011 16:12:30 +0000 (19:12 +0300)
-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@nokia.com>
tests/fs-tests/integrity/integck.c

index 0f4837722c2cc81d5af3c48cb21808d3166686eb..372a348625eb49acaf49f7b062340d8930542b62 100644 (file)
@@ -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)