diff options
author | Christopher R. Hertel <crh@samba.org> | 1998-08-03 18:13:13 +0000 |
---|---|---|
committer | Christopher R. Hertel <crh@samba.org> | 1998-08-03 18:13:13 +0000 |
commit | f1abfacd4d230075e5c4029271f2f3952ac2c68a (patch) | |
tree | 4e6b97fc99ab33314c78af1122577060cabb0901 /source3/nmbd/nmbd_packets.c | |
parent | 4fa20ebdc051083b02c790ff8a1c0a1094bd5e53 (diff) | |
download | samba-f1abfacd4d230075e5c4029271f2f3952ac2c68a.tar.gz samba-f1abfacd4d230075e5c4029271f2f3952ac2c68a.tar.bz2 samba-f1abfacd4d230075e5c4029271f2f3952ac2c68a.zip |
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)
Diffstat (limited to 'source3/nmbd/nmbd_packets.c')
-rw-r--r-- | source3/nmbd/nmbd_packets.c | 12 |
1 files changed, 7 insertions, 5 deletions
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") ); } } |