commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 05/10: eth-multiplexer: Fix debug macro.


From: Samuel Thibault
Subject: [hurd] 05/10: eth-multiplexer: Fix debug macro.
Date: Sun, 19 Nov 2017 15:27:17 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 5624d5437a35a82fa518fe0e33802a7a50f5bb15
Author: Justus Winter <address@hidden>
Date:   Thu Sep 21 13:26:48 2017 +0200

    eth-multiplexer: Fix debug macro.
    
    * eth-multiplexer/util.h (debug): Avoid format string warning.
---
 eth-multiplexer/util.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/eth-multiplexer/util.h b/eth-multiplexer/util.h
index 1e062c4..e1b6885 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)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]