r9736: be a little more verbose on error.
authorGünther Deschner <gd@samba.org>
Mon, 29 Aug 2005 13:10:20 +0000 (13:10 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:03:24 +0000 (11:03 -0500)
Guenther
(This used to be commit 48cb0638b598be391e69695c63a19814084658ca)

source3/client/smbspool.c

index b1c17a26fcd9dd8578a9a7f705feea270d1e62f6..5d27fbe4c2b464ba0d4221c176d5b58ba10df798 100644 (file)
@@ -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;
   }