1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

lib: Move tab_depth() to reg_parse_prs.c

Wow, I did not know we still use prs_struct...

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2023-01-03 19:14:24 +01:00 committed by Jeremy Allison
parent 6907db5cf0
commit 7ee474d9fd
3 changed files with 8 additions and 8 deletions

View File

@ -335,7 +335,6 @@ void set_remote_arch(enum remote_arch_types type);
enum remote_arch_types get_remote_arch(void);
bool remote_arch_cache_update(const struct GUID *client_guid);
bool remote_arch_cache_delete(const struct GUID *client_guid);
const char *tab_depth(int level, int depth);
int str_checksum(const char *s);
void zero_free(void *p, size_t size);
int set_maxfiles(int requested_max);

View File

@ -1235,13 +1235,6 @@ bool remote_arch_cache_delete(const struct GUID *client_guid)
return true;
}
const char *tab_depth(int level, int depth)
{
if( CHECK_DEBUGLVL(level) ) {
dbgtext("%*s", depth*4, "");
}
return "";
}
/*****************************************************************************
Provide a checksum on a string

View File

@ -27,6 +27,14 @@
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_PARSE
static const char *tab_depth(int level, int depth)
{
if( CHECK_DEBUGLVL(level) ) {
dbgtext("%*s", depth*4, "");
}
return "";
}
/*******************************************************************
Debug output for parsing info