From d48f6f884b2789828bb183249faf3918ec4e363a Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 18 Jun 2012 22:30:28 +0930 Subject: ntdb: print \n at end of log messages in tests. Signed-off-by: Rusty Russell --- lib/ntdb/test/tap-interface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ntdb/test/tap-interface.h') diff --git a/lib/ntdb/test/tap-interface.h b/lib/ntdb/test/tap-interface.h index f3d4ec2545..9df64a16cb 100644 --- a/lib/ntdb/test/tap-interface.h +++ b/lib/ntdb/test/tap-interface.h @@ -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) -- cgit