summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-12 11:46:42 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-12 11:46:42 +0000
commita26037ac7c1ac218863f9d674dcf85293eb2f085 (patch)
tree5d1330cc8dec0776f4edf8406d1044155528b65f /source3/lib
parentecd462f1c34b7cdc4670376d53a63d7210f3ef61 (diff)
downloadsamba-a26037ac7c1ac218863f9d674dcf85293eb2f085.tar.gz
samba-a26037ac7c1ac218863f9d674dcf85293eb2f085.tar.bz2
samba-a26037ac7c1ac218863f9d674dcf85293eb2f085.zip
added debugging macros (suitable eventually for use in tcpdump, hopefully)
(This used to be commit 946d73cf838976b905550288cac3aea7c43959f6)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 208f13aaf0..a68b8c2e6c 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -4428,3 +4428,11 @@ void dump_data(int level,unsigned char *buf,int len)
DEBUG(level,("\n"));
}
}
+
+char *tab_depth(int depth)
+{
+ static pstring spaces;
+ memset(spaces, ' ', depth * 4);
+ spaces[depth * 4] = 0;
+ return spaces;
+}