diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-09-21 08:11:53 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:56 -0500 |
commit | d9e43bc8834d797a2f5a7d39342f4083a3bc8239 (patch) | |
tree | be38396ce27a5b4abe368c90f9ecd91c799c6bca /source4 | |
parent | 5d7f0dec9e4eb14fa792e0218b0571ba779bbf59 (diff) | |
download | samba-d9e43bc8834d797a2f5a7d39342f4083a3bc8239.tar.gz samba-d9e43bc8834d797a2f5a7d39342f4083a3bc8239.tar.bz2 samba-d9e43bc8834d797a2f5a7d39342f4083a3bc8239.zip |
r2468: print out the names of the fault codes#
metze
(This used to be commit a0c2a3a5d4fba2a6a78cc3d167cbc19941fb43dc)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/rpc/autoidl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/rpc/autoidl.c b/source4/torture/rpc/autoidl.c index a0d36ecc86..44e0edb1c3 100644 --- a/source4/torture/rpc/autoidl.c +++ b/source4/torture/rpc/autoidl.c @@ -139,7 +139,7 @@ static void try_expand(TALLOC_CTX *mem_ctx, const struct dcerpc_interface_table } else { #if 0 print_depth(depth); - printf("expand by %d gives fault 0x%x\n", n, p->last_fault_code); + printf("expand by %d gives fault %s\n", n, dcerpc_errstr(mem_ctx, p->last_fault_code)); #endif } if (p->last_fault_code == 5) { @@ -171,8 +171,8 @@ static void test_ptr_scan(TALLOC_CTX *mem_ctx, const struct dcerpc_interface_tab if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) { print_depth(depth); - printf("possible ptr at ofs %d - fault 0x%08x\n", - ofs-min_ofs, p->last_fault_code); + printf("possible ptr at ofs %d - fault %s\n", + ofs-min_ofs, dcerpc_errstr(mem_ctx, p->last_fault_code)); if (p->last_fault_code == 5) { reopen(&p, iface); } @@ -234,7 +234,7 @@ static void test_scan_call(TALLOC_CTX *mem_ctx, const struct dcerpc_interface_ta } if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) { - printf("opnum %d size %d fault 0x%08x\n", opnum, i, p->last_fault_code); + printf("opnum %d size %d fault %s\n", opnum, i, dcerpc_errstr(mem_ctx, p->last_fault_code)); if (p->last_fault_code == 5) { reopen(&p, iface); } |