> However, I'm still going to commit the change tommorow... I think this
> wasn't a objection from you, Henning, was it?
No, not at all!
I just wanted to confirm that it works.
While looking at this topic I tried again to fix the debugging output for
systems/compilers that don't have vararg macros. Currently if debugging is
enabled on these systems (e.g. export SANE_DEBUG_MUSTEK=5) *all* backends
(metabackends, etc.) will output debug messages with a priority up to 5.
Further more, the backendname isn't printed. This is a complete mess.
However, it doesn't seem to be an easy fix. The variable for the current
debug level and the backend name is stored in the object code of the
backend. It has to be transmitted to sanei_init_debug in some way. With
vararg macros that's no problem because these two values can be transmitted
as function parameters to sanei_debug_max. Without varargs we can't touch
the parameters of DBG / sanei_debug so I don't have an idea how to tell
sanei_debug_msg the debug level and backend name without moving all these
functions to sanei_debug.h. Any ideas (maybe I didn't understand the code
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail email@example.com
This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 09:29:30 PDT