summaryrefslogtreecommitdiffstats
path: root/source/nmbd/nmbd_packets.c
diff options
context:
space:
mode:
authorChristopher R. Hertel <crh@samba.org>1998-08-03 18:13:13 +0000
committerChristopher R. Hertel <crh@samba.org>1998-08-03 18:13:13 +0000
commit247dbc9a24987035a47f1ba4fa143b1e2c050e92 (patch)
tree5b1314475fa172269ac9871a5e65b316326d2a63 /source/nmbd/nmbd_packets.c
parentb968aa31ba15742a9eadc010e03781583feb6455 (diff)
downloadsamba-247dbc9a24987035a47f1ba4fa143b1e2c050e92.tar.gz
samba-247dbc9a24987035a47f1ba4fa143b1e2c050e92.tar.xz
samba-247dbc9a24987035a47f1ba4fa143b1e2c050e92.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 -)-----
Diffstat (limited to 'source/nmbd/nmbd_packets.c')
-rw-r--r--source/nmbd/nmbd_packets.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/source/nmbd/nmbd_packets.c b/source/nmbd/nmbd_packets.c
index 23db8453483..1f216e3111f 100644
--- a/source/nmbd/nmbd_packets.c
+++ b/source/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") );
}
}