diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2017-04-12 15:49:52 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2017-04-12 15:49:52 +0800 |
commit | 051e93f23ff0654d5e54bd08624d34f6c4f8ffc4 (patch) | |
tree | 6b293a168380969b2a10669848fbdc47ecc9ae44 | |
parent | 43f439638aa061da3257720af6ba5e7e1a4bfaf3 (diff) | |
download | linaro-android-kernel-test-051e93f23ff0654d5e54bd08624d34f6c4f8ffc4.tar.gz |
sync-basic/sync-basic.c: another place for output formatlinaro-nougat
to make lava be able to collect the test result
Change-Id: I7a9012682a27ae64d0cc6c570d4d0a1f5ec9a9c8
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r-- | sync-basic/sync-basic.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sync-basic/sync-basic.c b/sync-basic/sync-basic.c index 2d78d06..b1b263a 100644 --- a/sync-basic/sync-basic.c +++ b/sync-basic/sync-basic.c @@ -53,7 +53,7 @@ void fatal (int error, const char *fmt, ...) va_start (ap, fmt); vfprintf (stderr, fmt, ap); if (error) - fprintf (stderr, " (error %d [%s])", error, strerror (error)); + fprintf (stderr, " (error %d [%s])", error, strerror (error)); va_end (ap); fprintf (stderr, "\n"); /* printf(RED); */ @@ -68,15 +68,15 @@ void pass (const char *fmt, ...) fprintf (stderr, "Test %d: ", testno); if (fmt == NULL) - fprintf (stderr, "Passed"); + fprintf (stderr, "Passed"); else { - va_start (ap, fmt); - vfprintf (stderr, fmt, ap); - va_end (ap); + va_start (ap, fmt); + vfprintf (stderr, fmt, ap); + va_end (ap); } fprintf (stderr, "\n"); /* printf(GREEN); */ - printf ("%d [sync_basic_%s]: test passed\n", testno, testname); + printf ("[sync_basic_%s]: test passed\n", testname); /* printf(NORMAL); */ } |