diff options
author | Gerald Carter <jerry@samba.org> | 2005-09-22 01:03:12 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2005-09-22 01:03:12 +0000 |
commit | 7a42b3de7aea0f8afefefd90db7fe8f255163589 (patch) | |
tree | 4bffa3032416c31dc29c84395c14c1c2193d206f | |
parent | 5c1fe3c6df760efee4ca0f5795522ddf7b800d79 (diff) | |
download | samba-7a42b3de7aea0f8afefefd90db7fe8f255163589.tar.gz |
r10399: bring in gd's better debug messages
-rw-r--r-- | source/client/smbspool.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source/client/smbspool.c b/source/client/smbspool.c index b1c17a26fcd..9b87c93aa56 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); } } @@ -335,8 +335,10 @@ char * get_ticket_cache( uid_t uid ) if ( ticket_file == NULL ) { +#ifdef DEVELOPER /* no ticket cache found */ fprintf(stderr, "ERROR: No ticket cache found for userid=%d\n", uid); +#endif return NULL; } @@ -425,10 +427,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; } |