From f1abfacd4d230075e5c4029271f2f3952ac2c68a Mon Sep 17 00:00:00 2001 From: "Christopher R. Hertel" Date: Mon, 3 Aug 1998 18:13:13 +0000 Subject: I finished removing timestring() calls from DEBUG() messages. Also went through and changed some DEBUG() calls to DEBUGADD() to combine output under a single timestamp. There were too many timestamps. Note that Jeremy has told me that he's working on adding a config parameter to turn timestamps off. Cool. Chris -)----- (This used to be commit 247dbc9a24987035a47f1ba4fa143b1e2c050e92) --- source3/nmbd/nmbd_packets.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'source3/nmbd/nmbd_packets.c') diff --git a/source3/nmbd/nmbd_packets.c b/source3/nmbd/nmbd_packets.c index 23db845348..1f216e3111 100644 --- a/source3/nmbd/nmbd_packets.c +++ b/source3/nmbd/nmbd_packets.c @@ -95,9 +95,11 @@ Dumps out the browse packet data. static void debug_browse_data(char *outbuf, int len) { int i,j; + + DEBUG( 4, ( "debug_browse_data():\n" ) ); for (i = 0; i < len; i+= 16) { - DEBUG(4, ("%3x char ", i)); + DEBUGADD( 4, ( "%3x char ", i ) ); for (j = 0; j < 16; j++) { @@ -107,19 +109,19 @@ static void debug_browse_data(char *outbuf, int len) if (i+j >= len) break; - DEBUG(4, ("%c", x)); + DEBUGADD( 4, ( "%c", x ) ); } - DEBUG(4, (" hex ", i)); + DEBUGADD( 4, ( " hex ", i ) ); for (j = 0; j < 16; j++) { if (i+j >= len) break; - DEBUG(4, (" %02x", (unsigned char)outbuf[i+j])); + DEBUGADD( 4, ( " %02x", (unsigned char)outbuf[i+j] ) ); } - DEBUG(4, ("\n")); + DEBUGADD( 4, ("\n") ); } } -- cgit