Re: bug in sanei_debug.h

From: Henning Meier-Geinitz (hmg-ml@gmx.de)
Date: Sat Oct 14 2000 - 13:33:08 PDT

  • Next message: Oliver Rauch: "win32 version of xsane-0.62 available"

    Hi,

    > 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
    fully ...).

    Bye,
      Henning

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    



    This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 09:29:30 PDT