diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-05-12 14:28:46 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-05-12 14:28:46 +0000 |
commit | 0806cf75ff96dee6715610bd61e21cde08fa1c61 (patch) | |
tree | 7a13945b6c11b42a9ce6c1f4c41469bab96a8ab2 /source3/rpc_parse/parse_prs.c | |
parent | d55b849d7740aee9795a8ded94d3a2db5b94cc02 (diff) | |
download | samba-0806cf75ff96dee6715610bd61e21cde08fa1c61.tar.gz samba-0806cf75ff96dee6715610bd61e21cde08fa1c61.tar.xz samba-0806cf75ff96dee6715610bd61e21cde08fa1c61.zip |
added spool_io_printer_driver_info_level_6()
thsi function and the associated header structure were autogenerated
using a little awk based code geerator I wroe ths evening. I'll commit
that next ...
(This used to be commit 974813f0d4afb6c14ed27c48ab24b19932557f9f)
Diffstat (limited to 'source3/rpc_parse/parse_prs.c')
-rw-r--r-- | source3/rpc_parse/parse_prs.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_prs.c b/source3/rpc_parse/parse_prs.c index 64c1590b7d..2edd080a0e 100644 --- a/source3/rpc_parse/parse_prs.c +++ b/source3/rpc_parse/parse_prs.c @@ -27,6 +27,25 @@ extern int DEBUGLEVEL; /******************************************************************* +dump a prs to a file + ********************************************************************/ +void prs_dump(char *name, int level, prs_struct *ps) +{ + int fd; + pstring fname; + if (DEBUGLEVEL < 50) return; + slprintf(fname,sizeof(fname), "/tmp/%s_%d.prs", name, level); + fd = open(fname, O_WRONLY|O_CREAT|O_EXCL, 0644); + if (fd != -1) { + write(fd, ps->data_p + ps->data_offset, ps->buffer_size - ps->data_offset); + close(fd); + DEBUG(0,("created %s\n", fname)); + } +} + + + +/******************************************************************* debug output for parsing info. XXXX side-effect of this function is to increase the debug depth XXXX @@ -428,7 +447,6 @@ BOOL prs_uint32(char *name, prs_struct *ps, int depth, uint32 *data32) return True; } - /****************************************************************** Stream an array of uint8s. Length is number of uint8s. ********************************************************************/ |