Error Reporting

Michael Sweet msweet at apple.com
Thu Dec 3 11:52:52 PST 2009


On Dec 3, 2009, at 3:40 AM, kavin wrote:
> Hi,
> 
> 
> 
>       I detected some error through cups Port Monitor.Then I want to throw it to the printer GUI.pls give me the guidance to do .please give me the sample code for this one.


To display an error message:

    fputs("ERROR: Disruption in the space-time continuum!\n", stderr);

The GUI needs to show the current printer-state-message value for this to work, but most do...

___________________________________________________
Michael Sweet, Senior Printing System Engineer







More information about the cups-devel mailing list