Improving error reporting from backends

Erik de Castro Lopo mle+cups at mega-nerd.com
Tue Nov 13 13:07:25 PST 2007


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.

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?

If so, what else can a backend report? Is this documented somewhere?

TIA,
Erik





More information about the cups-devel mailing list