From a34c21f3783c9d8e18fa1a4a5cd1e734f80b7a91 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 29 Aug 2005 13:10:20 +0000 Subject: r9736: be a little more verbose on error. Guenther (This used to be commit 48cb0638b598be391e69695c63a19814084658ca) --- source3/client/smbspool.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3') diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c index b1c17a26fc..5d27fbe4c2 100644 --- a/source3/client/smbspool.c +++ b/source3/client/smbspool.c @@ -226,12 +226,12 @@ static int smb_print(struct cli_state *, char *, FILE *); { if (getenv("CLASS") == NULL) { - fprintf(stderr, "ERROR: Unable to connect to SAMBA host, will retry in 60 seconds..."); - sleep (60); + fprintf(stderr, "ERROR: Unable to connect to CIFS host, will retry in 60 seconds..."); + sleep (60); /* should just waiting and retrying fix authentication ??? */ } else { - fprintf(stderr, "ERROR: Unable to connect to SAMBA host, trying next printer..."); + fprintf(stderr, "ERROR: Unable to connect to CIFS host, trying next printer..."); return (1); } } @@ -425,10 +425,10 @@ static struct cli_state return NULL; } - if (!cli_send_tconX(cli, share, "?????",password, strlen(password)+1)) + if (!cli_send_tconX(cli, share, "?????", password, strlen(password)+1)) { + fprintf(stderr, "ERROR: Tree connect failed (%s)\n", cli_errstr(cli)); cli_shutdown(cli); - fprintf(stderr, "ERROR: Tree connect failed\n" ); return NULL; } -- cgit