diff options
-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); */ } |