summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-04-05 01:26:52 +0000
committerJeremy Allison <jra@samba.org>2000-04-05 01:26:52 +0000
commit6fc9ba3df70dc357c782c1e74e7675b3e6748c40 (patch)
treeaec84aae3ea064802f1bb7080264075f4c581615 /source3/printing
parent2d15c34f4fc2f3943328976361ab8c67508b6e82 (diff)
downloadsamba-6fc9ba3df70dc357c782c1e74e7675b3e6748c40.tar.gz
samba-6fc9ba3df70dc357c782c1e74e7675b3e6748c40.tar.bz2
samba-6fc9ba3df70dc357c782c1e74e7675b3e6748c40.zip
Added strerror at debug level 0 on file create/open fail. Helps catch
problems. Jeremy. (This used to be commit a25891f52491a3aed89302704ba24df832aedf0b)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 28e032cabc..af651d76fe 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -126,7 +126,7 @@ int write_ntforms(nt_forms_struct **list, int number)
if((f = sys_fopen(file, "w")) == NULL)
{
- DEBUG(1, ("cannot create forms file [%s]\n", file));
+ DEBUG(0, ("write_ntforms: Cannot create forms file [%s]. Error was %s\n", file, strerror(errno) ));
return(0);
}
@@ -334,7 +334,7 @@ static uint32 add_a_printer_driver_3(NT_PRINTER_DRIVER_INFO_LEVEL_3 *driver)
if((f = sys_fopen(file, "w")) == NULL)
{
- DEBUG(1, ("cannot create driver file [%s]\n", file));
+ DEBUG(0, ("add_a_printer_driver_3: Cannot create driver file [%s]. Error was %s\n", file, strerror(errno) ));
return(2);
}
@@ -624,7 +624,7 @@ static uint32 add_a_printer_2(NT_PRINTER_INFO_LEVEL_2 *info)
if((f = sys_fopen(file, "w")) == NULL)
{
- DEBUG(1, ("cannot create printer file [%s]\n", file));
+ DEBUG(0, ("add_a_printer_2: Cannot create printer file [%s]. Error was %s\n", file, strerror(errno) ));
return(2);
}