Improving error reporting from backends
Michael Sweet
mike at easysw.com
Tue Nov 13 22:08:10 PST 2007
Erik de Castro Lopo wrote:
> Michael Sweet wrote:
>> STATE: messages can be written by the backend to report conditions
>> like this.
>
> Sorry, I'm rather new to CUPS and that was just a little terse for me.
"man backend", "man filter", http://localhost:631/help, and look at
RFC 2911.
> Do you mean that in the backend I can do things like:
>
> fprintf (stderr, "STATE : Out of paper.\n") ;
>
> and CUPS will pick it up for retrieval using the printer-state-reasons attribute?
Yes, but you need to use the registered keywords/names, like:
STATE: media-tray-empty-error
STATE: media-tray-low-warning
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
Internet Printing and Document Software http://www.easysw.com
More information about the cups-devel
mailing list