Author: gd Date: 2005-08-29 13:10:20 +0000 (Mon, 29 Aug 2005) New Revision: 9736
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9736 Log: be a little more verbose on error. Guenther Modified: branches/SAMBA_3_0/source/client/smbspool.c trunk/source/client/smbspool.c Changeset: Modified: branches/SAMBA_3_0/source/client/smbspool.c =================================================================== --- branches/SAMBA_3_0/source/client/smbspool.c 2005-08-29 12:31:32 UTC (rev 9735) +++ branches/SAMBA_3_0/source/client/smbspool.c 2005-08-29 13:10:20 UTC (rev 9736) @@ -226,12 +226,12 @@ { 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 @@ 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; } Modified: trunk/source/client/smbspool.c =================================================================== --- trunk/source/client/smbspool.c 2005-08-29 12:31:32 UTC (rev 9735) +++ trunk/source/client/smbspool.c 2005-08-29 13:10:20 UTC (rev 9736) @@ -226,12 +226,12 @@ { 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 @@ 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; }
