<br>Hi<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I look up the &lt;sane/sanei_debug.h&gt;, and I also refer to the backends wrote by others, but I still confused how to use DBG(level, fmt, ...) to output specific information. e.g.&nbsp; I define below macro follow the sanei_debug.h,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #include &lt;sane/sanei_debug.h&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #define BACKEND_NAME&nbsp; MY_BACKEND<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #define&nbsp; FUNCTION_DETAIL&nbsp; 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #define&nbsp; FUNCTION_TRACE&nbsp; 2<br><br>I call&nbsp; DBG_INIT() in sane_init (). In some functions I use DBG(1, &quot;%d&quot;, param) and DBG(2, &quot;%d&quot;, msg) to output debug information. But the backend doesn&#39;t output&nbsp; any information that I wanted while I debug it . Does anyone tell me what should I do to output these debug information?<br>
<br>Thank you.<br>