diff options
author | Christopher R. Hertel <crh@samba.org> | 1998-10-22 18:07:39 +0000 |
---|---|---|
committer | Christopher R. Hertel <crh@samba.org> | 1998-10-22 18:07:39 +0000 |
commit | 9f9b30abab118f0a2e007beddd79de38a2d5ea29 (patch) | |
tree | cd8e97dd3a6fb6bb6c0a9234674a03f30862ee35 /source/nmbd | |
parent | 89f6e05ce4cc21fd2e3c0e416e49383f7b56d1ea (diff) | |
download | samba-9f9b30abab118f0a2e007beddd79de38a2d5ea29.tar.gz samba-9f9b30abab118f0a2e007beddd79de38a2d5ea29.tar.xz samba-9f9b30abab118f0a2e007beddd79de38a2d5ea29.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 -)-----
Diffstat (limited to 'source/nmbd')
-rw-r--r-- | source/nmbd/nmbd_packets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nmbd/nmbd_packets.c b/source/nmbd/nmbd_packets.c index a515ea548eb..b0ef96f694c 100644 --- a/source/nmbd/nmbd_packets.c +++ b/source/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++) { |