r2399: Display text description of rpc fault in debug message.
authorTim Potter <tpot@samba.org>
Sat, 18 Sep 2004 06:31:56 +0000 (06:31 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:58:48 +0000 (12:58 -0500)
source/librpc/rpc/dcerpc.c

index ce2a434e47f229dd3387b5fc236ffbe77d6c388a..a4f93973f7fa066e265808fb8c5f2b43ecf67e40 100644 (file)
@@ -709,7 +709,7 @@ static void dcerpc_request_recv_data(struct dcerpc_pipe *p,
        }
 
        if (pkt.ptype == DCERPC_PKT_FAULT) {
-               DEBUG(5,("rpc fault 0x%x\n", pkt.u.fault.status));
+               DEBUG(5,("rpc fault: %s\n", dcerpc_errstr(p, pkt.u.fault.status)));
                req->fault_code = pkt.u.fault.status;
                req->status = NT_STATUS_NET_WRITE_FAULT;
                req->state = RPC_REQUEST_DONE;