/*
- * "$Id: ppd.c,v 1.51.2.38 2003/02/18 22:29:54 mike Exp $"
+ * "$Id: ppd.c,v 1.51.2.39 2003/02/18 22:43:26 mike Exp $"
*
* PPD file routines for the Common UNIX Printing System (CUPS).
*
"OK",
"Unable to open PPD file",
"NULL PPD file pointer",
- "Missing PPD-Adobe-4.x header",
"Memory allocation error",
+ "Missing PPD-Adobe-4.x header",
"Missing value string",
"Internal error",
"Bad OpenGroup",
/*
- * End of "$Id: ppd.c,v 1.51.2.38 2003/02/18 22:29:54 mike Exp $".
+ * End of "$Id: ppd.c,v 1.51.2.39 2003/02/18 22:43:26 mike Exp $".
*/
/*
- * "$Id: ppd.h,v 1.24.2.13 2003/02/18 22:29:55 mike Exp $"
+ * "$Id: ppd.h,v 1.24.2.14 2003/02/18 22:43:27 mike Exp $"
*
* PostScript Printer Description definitions for the Common UNIX Printing
* System (CUPS).
PPD_OK = 0, /* OK */
PPD_FILE_OPEN_ERROR, /* Unable to open PPD file */
PPD_NULL_FILE, /* NULL PPD file pointer */
- PPD_MISSING_PPDADOBE4, /* Missing PPD-Adobe-4.x header */
PPD_ALLOC_ERROR, /* Memory allocation error */
+ PPD_MISSING_PPDADOBE4, /* Missing PPD-Adobe-4.x header */
PPD_MISSING_VALUE, /* Missing value string */
PPD_INTERNAL_ERROR, /* Internal error */
PPD_BAD_OPEN_GROUP, /* Bad OpenGroup */
#endif /* !_CUPS_PPD_H_ */
/*
- * End of "$Id: ppd.h,v 1.24.2.13 2003/02/18 22:29:55 mike Exp $".
+ * End of "$Id: ppd.h,v 1.24.2.14 2003/02/18 22:43:27 mike Exp $".
*/
/*
- * "$Id: printers.c,v 1.93.2.36 2003/02/14 20:09:33 mike Exp $"
+ * "$Id: printers.c,v 1.93.2.37 2003/02/18 22:43:28 mike Exp $"
*
* Printer routines for the Common UNIX Printing System (CUPS).
*
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);
+
+ if (pstatus <= PPD_ALLOC_ERROR)
+ LogMessage(L_ERROR, "%s", strerror(errno));
+ else
+ LogMessage(L_ERROR, "%s on line %d.", ppdErrorString(pstatus),
+ pline);
AddPrinterFilter(p, "application/vnd.cups-postscript 0 -");
}
/*
- * End of "$Id: printers.c,v 1.93.2.36 2003/02/14 20:09:33 mike Exp $".
+ * End of "$Id: printers.c,v 1.93.2.37 2003/02/18 22:43:28 mike Exp $".
*/
/*
- * "$Id: cupstestppd.c,v 1.1.2.10 2003/02/18 22:29:56 mike Exp $"
+ * "$Id: cupstestppd.c,v 1.1.2.11 2003/02/18 22:43:30 mike Exp $"
*
* PPD test program for the Common UNIX Printing System (CUPS).
*
{
error = ppdLastError(&line);
- if (error <= PPD_NULL_FILE || error == PPD_ALLOC_ERROR)
+ if (error <= PPD_ALLOC_ERROR)
{
status = ERROR_FILE_OPEN;
/*
- * End of "$Id: cupstestppd.c,v 1.1.2.10 2003/02/18 22:29:56 mike Exp $".
+ * End of "$Id: cupstestppd.c,v 1.1.2.11 2003/02/18 22:43:30 mike Exp $".
*/