diff options
author | Günther Deschner <gd@samba.org> | 2005-08-29 13:10:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:03:24 -0500 |
commit | 48cb0638b598be391e69695c63a19814084658ca (patch) | |
tree | 8b76b38bd30cf86cd422b7f43361d5acd67cc980 /source/client/smbspool.c | |
parent | d79b179b7f9d2efa4f8ee47bfe386e90d8b58322 (diff) | |
download | samba-48cb0638b598be391e69695c63a19814084658ca.tar.gz samba-48cb0638b598be391e69695c63a19814084658ca.tar.xz samba-48cb0638b598be391e69695c63a19814084658ca.zip |
r9736: be a little more verbose on error.
Guenther
Diffstat (limited to 'source/client/smbspool.c')
-rw-r--r-- | source/client/smbspool.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/client/smbspool.c b/source/client/smbspool.c index b1c17a26fcd..5d27fbe4c2b 100644 --- a/source/client/smbspool.c +++ b/source/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; } |