Patchwork [10/13] fs-tests: integck: make -v switch work

login
register
mail settings
Submitter Artem Bityutskiy
Date April 22, 2011, 5:25 p.m.
Message ID <1303493124-7619-11-git-send-email-dedekind1@gmail.com>
Download mbox | patch
Permalink /patch/92562/
State Accepted
Commit eb5374be4a946e0ff3f198408068ed5e4718f1fb
Headers show

Comments

Artem Bityutskiy - April 22, 2011, 5:25 p.m.
From: Artem Bityutskiy <Artem.Bityutskiy@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@nokia.com>
---
 tests/fs-tests/integrity/integck.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

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)