[jsonrpc-glib] tests: allow params in LOG()



commit 0b5756e907010285ea09b0980ce966e77308584e
Author: Christian Hergert <chergert redhat com>
Date:   Wed Dec 27 03:17:33 2017 -0800

    tests: allow params in LOG()

 tests/test-stress.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/test-stress.c b/tests/test-stress.c
index b3aed22..b32614f 100644
--- a/tests/test-stress.c
+++ b/tests/test-stress.c
@@ -27,9 +27,9 @@ static gint n_ops;
 static gboolean begin_next_op_source (gpointer data);
 
 #if 0
-# define LOG(s) g_print(s "\n")
+# define LOG(s,...) g_print(s "\n", ## __VA_ARGS__)
 #else
-# define LOG(s) do { } while (0)
+# define LOG(s,...) do { } while (0)
 #endif
 
 static GIOStream *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]