s3: Remove two uses of cli_errstr
authorVolker Lendecke <vl@samba.org>
Sun, 3 Jul 2011 09:27:53 +0000 (11:27 +0200)
committerVolker Lendecke <vlendec@samba.org>
Sun, 3 Jul 2011 10:43:32 +0000 (12:43 +0200)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jul  3 12:43:32 CEST 2011 on sn-devel-104

source3/libsmb/clirap2.c

index 03b4ca754123ca0d1835c07917075eb248601895..1d36ca65ca1b79493ff95de0c3700caf545a4427 100644 (file)
@@ -1533,8 +1533,10 @@ bool cli_get_pdc_name(struct cli_state *cli, const char *workgroup, char **pdc_n
                                TALLOC_FREE(frame);
                        }
                } else {
-                       DEBUG(4,("cli_get_pdc_name: machine %s failed the NetServerEnum call. "
-                               "Error was : %s.\n", cli->desthost, cli_errstr(cli) ));
+                       DEBUG(4, ("cli_get_pdc_name: machine %s failed the "
+                                 "NetServerEnum call. Error was : %s.\n",
+                                 cli->desthost,
+                                 win_errstr(W_ERROR(cli->rap_error))));
                }
        }
 
@@ -1830,8 +1832,10 @@ bool cli_ns_check_server_type(struct cli_state *cli, char *workgroup, uint32 sty
                                }
                        }
                } else {
-                       DEBUG(4,("cli_ns_check_server_type: machine %s failed the NetServerEnum call. "
-                               "Error was : %s.\n", cli->desthost, cli_errstr(cli) ));
+                       DEBUG(4, ("cli_ns_check_server_type: machine %s "
+                                 "failed the NetServerEnum call. Error was : "
+                                 "%s.\n", cli->desthost,
+                                 win_errstr(W_ERROR(cli->rap_error))));
                }
        }