[jsonrpc-glib] tests: allow params in LOG()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jsonrpc-glib] tests: allow params in LOG()
- Date: Wed, 27 Dec 2017 11:38:55 +0000 (UTC)
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]