Re: DBG(0, ...)

From: Oliver Rauch (oliver.rauch@rauch-domain.de)
Date: Mon May 14 2001 - 08:25:17 PDT

  • Next message: Henning Meier-Geinitz: "Re: HP 5200C -- segfaults and "inappropriate ioctl for device""

    Petter Reinholdtsen wrote:
    >
    > I believe there is a misfeature in the DBG() functions. Peter Fales
    > pointed out to me that the following code in a backend
    >
    > DBG(0, "foo");
    >
    > will print out "foo" even if SANE_DEBUG_BACKEND is not set. I believe
    > this is wrong. I believe DBG() should not print anything unless
    > debugging is enabled for that specific backend. I suggest applying
    > this patch to fix it. Is there anything I haven't thought about?

    Hi Petter,

    I like the DBG(0,"foo"); behaviour.
    If I want some special debugging output while testing the backend
    I often use this.
    So if there is no special need to change this I would
    appreciate to keep it like it is.

    Bye
    Oliver

    -- 
    Homepage:	http://www.rauch-domain.de
    sane-umax:	http://www.rauch-domain.de/sane-umax
    xsane:		http://www.xsane.org
    E-Mail:		mailto:Oliver.Rauch@rauch-domain.de
    

    -- 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 : Mon May 14 2001 - 08:10:32 PDT