ntdb: print \n at end of log messages in tests.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 18 Jun 2012 13:00:28 +0000 (22:30 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 19 Jun 2012 03:38:06 +0000 (05:38 +0200)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/ntdb/test/tap-interface.h

index f3d4ec2545f317c0133fb25a4350139ed8c97972..9df64a16cb569b0be3905d618f2386ca5d8beb13 100644 (file)
@@ -37,5 +37,5 @@ extern unsigned tap_ok_count, tap_ok_target;
 #define ok1(e) ok((e), "%s:%s", __location__, #e)
 #define pass(...) (printf("."), tap_ok_count++)
 #define fail(...) warnx(__VA_ARGS__)
-#define diag printf
+#define diag(...) do { printf(__VA_ARGS__); printf("\n"); } while(0)
 #define exit_status() (tap_ok_count == tap_ok_target ? 0 : 1)