diff options
author | Tim Potter <tpot@samba.org> | 2002-09-06 06:13:16 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-09-06 06:13:16 +0000 |
commit | 2ec89150f81b3643fa36c7e17ecaab223a97bfcb (patch) | |
tree | 0cf55d2ff77dd72cc76d1e27884e2b1ab33fe792 | |
parent | c9e550f76586e9dd4407e26aca4c29ac2186e730 (diff) | |
download | samba-2ec89150f81b3643fa36c7e17ecaab223a97bfcb.tar.gz samba-2ec89150f81b3643fa36c7e17ecaab223a97bfcb.tar.xz samba-2ec89150f81b3643fa36c7e17ecaab223a97bfcb.zip |
Display debug data we are marshalling/unmarshalling a UNISTR in a
similar format to UNISTR2.
(This used to be commit 2d227bdce26674affad87ad6d118e77604fb210a)
-rw-r--r-- | source3/rpc_parse/parse_prs.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_prs.c b/source3/rpc_parse/parse_prs.c index 4de6b88e9c..843be33187 100644 --- a/source3/rpc_parse/parse_prs.c +++ b/source3/rpc_parse/parse_prs.c @@ -1061,7 +1061,9 @@ BOOL prs_unistr(char *name, prs_struct *ps, int depth, UNISTR *str) len++; - dump_data(5+depth, (char *)start, len * 2); + DEBUG(5,("%s%04x %s: ", tab_depth(depth), ps->data_offset, name)); + print_asc(5, (unsigned char*)start, 2*len); + DEBUG(5, ("\n")); } else { /* unmarshalling */ @@ -1114,6 +1116,10 @@ BOOL prs_unistr(char *name, prs_struct *ps, int depth, UNISTR *str) /* NULL terminate the UNISTR */ str->buffer[len++] = '\0'; } + + DEBUG(5,("%s%04x %s: ", tab_depth(depth), ps->data_offset, name)); + print_asc(5, (unsigned char*)str->buffer, 2*len); + DEBUG(5, ("\n")); } /* set the offset in the prs_struct; 'len' points to the |