summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-10 11:47:21 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-10 11:47:21 +0000
commit8a20407442efa0f9fe43e1b1c61140a0771c6ff8 (patch)
treebbf0328ea060ca5986c92f45c7feacecf014be7a /source3/printing
parent4703248a8e7287b738fa82edfd91fb2b13e7c222 (diff)
downloadsamba-8a20407442efa0f9fe43e1b1c61140a0771c6ff8.tar.gz
samba-8a20407442efa0f9fe43e1b1c61140a0771c6ff8.tar.bz2
samba-8a20407442efa0f9fe43e1b1c61140a0771c6ff8.zip
Cleanups: (merge from HEAD)
- use safe_strcpy() instead of pstrcpy() for malloc()ed strings - CUPS: a failure in an attempt to automaticly add a printer is not level 0 stuff. - Fix up a possible Realloc() failure segfault Andrew Bartlett (This used to be commit c1cfc296c2efdb2b5972202146e80f0e3b6a3da4)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/print_cups.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c
index c283937556..7cf21c966e 100644
--- a/source3/printing/print_cups.c
+++ b/source3/printing/print_cups.c
@@ -332,7 +332,7 @@ int cups_printername_ok(const char *name)
if ((http = httpConnect(cupsServer(), ippPort())) == NULL)
{
- DEBUG(0,("Unable to connect to CUPS server %s - %s\n",
+ DEBUG(3,("Unable to connect to CUPS server %s - %s\n",
cupsServer(), strerror(errno)));
return (0);
}
@@ -374,7 +374,7 @@ int cups_printername_ok(const char *name)
if ((response = cupsDoRequest(http, request, "/")) == NULL)
{
- DEBUG(0,("Unable to get printer status for %s - %s\n", name,
+ DEBUG(3,("Unable to get printer status for %s - %s\n", name,
ippErrorString(cupsLastError())));
httpClose(http);
return (0);
@@ -384,7 +384,7 @@ int cups_printername_ok(const char *name)
if (response->request.status.status_code >= IPP_OK_CONFLICT)
{
- DEBUG(0,("Unable to get printer status for %s - %s\n", name,
+ DEBUG(3,("Unable to get printer status for %s - %s\n", name,
ippErrorString(response->request.status.status_code)));
ippDelete(response);
return (0);