[cups.development] CUPS status message output functions
Michael Sweet
msweet at apple.com
Wed Jan 12 08:35:58 PST 2011
On Jan 12, 2011, at 1:06 AM, keens312 wrote:
> Hi Michael,
>
> My filter wants to update strings in OSX 10.6 printer proxy.
> I can use either C++ std::cerr function or C style fprintf(stderr, xxx).
> We found that in some cases std::cerr cannot update the message immediately, but fprintf can.
> Which one do your suggest? Is there any difference between the two?
Probably differences in buffering; my main recommendation is to just be consistent (use stderr or std::cerr, not both) and to *not* buffer any messages (or flush them immediately after a write...) so that the information is available to the scheduler when you expect it.
________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
More information about the cups-devel
mailing list