svn commit: samba r2468 - in branches/SAMBA_4_0/source/torture/rpc: .

metze at samba.org metze at samba.org
Tue Sep 21 08:11:54 GMT 2004


Author: metze
Date: 2004-09-21 08:11:53 +0000 (Tue, 21 Sep 2004)
New Revision: 2468

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/torture/rpc&rev=2468&nolog=1

Log:
print out the names of the fault codes#

metze

Modified:
   branches/SAMBA_4_0/source/torture/rpc/autoidl.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/autoidl.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/autoidl.c	2004-09-21 07:56:12 UTC (rev 2467)
+++ branches/SAMBA_4_0/source/torture/rpc/autoidl.c	2004-09-21 08:11:53 UTC (rev 2468)
@@ -139,7 +139,7 @@
 		} 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 @@
 
 		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 @@
 		}
 
 		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);
 			}



More information about the samba-cvs mailing list