summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher R. Hertel <crh@samba.org>1998-10-22 18:07:39 +0000
committerChristopher R. Hertel <crh@samba.org>1998-10-22 18:07:39 +0000
commit034a12fdcb6f707b382d9da481bc012a3c49da76 (patch)
treed627b84c720ec8bd79aa2c81284ebd5de31e33aa
parent1c753388d3b9a659272b6b04e0c365eb821b6c73 (diff)
downloadsamba-034a12fdcb6f707b382d9da481bc012a3c49da76.tar.gz
samba-034a12fdcb6f707b382d9da481bc012a3c49da76.tar.bz2
samba-034a12fdcb6f707b382d9da481bc012a3c49da76.zip
Minor change.
The debug_browse_data() function does a hex dump of a browser packet. The last line is often not a full 16 bytes, which would miss-align the hex output. I've added the padding needed to align the hex output. Chris -)----- (This used to be commit 9f9b30abab118f0a2e007beddd79de38a2d5ea29)
-rw-r--r--source3/nmbd/nmbd_packets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_packets.c b/source3/nmbd/nmbd_packets.c
index a515ea548e..b0ef96f694 100644
--- a/source3/nmbd/nmbd_packets.c
+++ b/source3/nmbd/nmbd_packets.c
@@ -114,7 +114,7 @@ static void debug_browse_data(char *outbuf, int len)
DEBUGADD( 4, ( "%c", x ) );
}
- DEBUGADD( 4, ( " hex ") );
+ DEBUGADD( 4, ( "%*s hex ", 16-j, "" ) );
for (j = 0; j < 16; j++)
{