aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eth-multiplexer/util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/eth-multiplexer/util.h b/eth-multiplexer/util.h
index 1e062c40..e1b68855 100644
--- a/eth-multiplexer/util.h
+++ b/eth-multiplexer/util.h
@@ -36,9 +36,9 @@
#define debug(format, ...) do \
{ \
- char buf[1024]; \
- snprintf (buf, 1024, "multiplexer: %s: %s\n", __func__, format); \
- fprintf (stderr , buf, ## __VA_ARGS__); \
+ fprintf (stderr, "eth-multiplexer: %s: ", __func__); \
+ fprintf (stderr, format, ## __VA_ARGS__); \
+ fprintf (stderr, "\n"); \
fflush (stderr); \
} while (0)