]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Use new PPD API to show PPD errors in the scheduler error_log file.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 14 Feb 2003 20:09:15 +0000 (20:09 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 14 Feb 2003 20:09:15 +0000 (20:09 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@3362 7a7537e8-13f0-0310-91df-b6672ffda945

scheduler/printers.c

index 11ec39f98759eb19ab344fcf3136c2ceba781067..f2e04f7bf3c4e91811f673ff3fe777a173ce0d9e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: printers.c,v 1.137 2003/02/05 21:18:55 mike Exp $"
+ * "$Id: printers.c,v 1.138 2003/02/14 20:09:15 mike Exp $"
  *
  *   Printer routines for the Common UNIX Printing System (CUPS).
  *
@@ -1400,7 +1400,15 @@ SetPrinterAttrs(printer_t *p)            /* I - Printer to setup */
       }
       else if (access(filename, 0) == 0)
       {
+        int            pline;                  /* PPD line number */
+       ppd_status_t    pstatus;                /* PPD load status */
+
+
+        pstatus = ppdLastError(&pline);
+
        LogMessage(L_ERROR, "PPD file for %s cannot be loaded!", p->name);
+       LogMessage(L_ERROR, "%s on line %d.", ppdErrorString(pstatus),
+                  pline);
 
        AddPrinterFilter(p, "application/vnd.cups-postscript 0 -");
       }
@@ -2133,5 +2141,5 @@ write_irix_state(printer_t *p)    /* I - Printer to update */
 
 
 /*
- * End of "$Id: printers.c,v 1.137 2003/02/05 21:18:55 mike Exp $".
+ * End of "$Id: printers.c,v 1.138 2003/02/14 20:09:15 mike Exp $".
  */