From d9e43bc8834d797a2f5a7d39342f4083a3bc8239 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 21 Sep 2004 08:11:53 +0000 Subject: r2468: print out the names of the fault codes# metze (This used to be commit a0c2a3a5d4fba2a6a78cc3d167cbc19941fb43dc) --- source4/torture/rpc/autoidl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/torture') 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); } -- cgit