From adf19b8ec3d3c0e98d9fd4e4f099b50b52695f2d Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Sun, 13 Jul 1997 12:58:20 +0000 Subject: added pretty printing of data section to show_msg(), for debug log level 10. data section output is now in same format as tcpdump (hex and characters). lkcl (This used to be commit dcb1a74cf11de0c02c640e4d683ac81a814db624) --- source3/lib/util.c | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/source3/lib/util.c b/source3/lib/util.c index f31ae390aa..b7ad0bb5bc 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -995,6 +995,7 @@ void dos_format(char *fname) void show_msg(char *buf) { int i; + int j; int bcc=0; if (DEBUGLEVEL < 5) return; @@ -1020,9 +1021,28 @@ void show_msg(char *buf) DEBUG(5,("smb_bcc=%d\n",bcc)); if (DEBUGLEVEL < 10) return; - for (i=0;i 128) c = '.'; + DEBUG(10,("%c",c)); + + if (j == 7) DEBUG(10, (" ")); + } + + DEBUG(10,("\n")); + } } /******************************************************************* -- cgit