diff options
author | Luke Leighton <lkcl@samba.org> | 1997-10-12 11:46:42 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1997-10-12 11:46:42 +0000 |
commit | 946d73cf838976b905550288cac3aea7c43959f6 (patch) | |
tree | edb34eaaa2eec13e94b4442bf207e4bcaf7716d4 /source/lib | |
parent | b1ba290f2ee8c4317e0daf7b6ae18caa82331cc2 (diff) | |
download | samba-946d73cf838976b905550288cac3aea7c43959f6.tar.gz samba-946d73cf838976b905550288cac3aea7c43959f6.tar.xz samba-946d73cf838976b905550288cac3aea7c43959f6.zip |
added debugging macros (suitable eventually for use in tcpdump, hopefully)
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/util.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/lib/util.c b/source/lib/util.c index 208f13aaf00..a68b8c2e6c1 100644 --- a/source/lib/util.c +++ b/source/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; +} |