<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Point taken: I'm recompiling with all the 3-4 NDEBUG statements in those two files changed to NDEBUGPIXMA.<br>Will test and post logs in a pinch, I hope.<br><br>Twain28<br><br><hr id="stopSpelling">Date: Mon, 12 Jul 2010 11:48:34 +0200<br>Subject: Re: [sane-devel] Testing on Canon MF6580PL<br>From: nicolas0martin@gmail.com<br>To: twain43@hotmail.com<br>CC: chris@cnpbagwell.com; sane-devel@lists.alioth.debian.org<br><br><div>Be careful so to change all the NDEBUG statements contained in the files. </div>
<div>Yes, the idea here was to rename NDEBUG to NDEBUGPIXMA</div>
<div>If the log you sent include all of these changes, probably means this was not the root cause to the backend dumbness on Mac OS X&nbsp;... </div>
<div>FYI, someone reported recently the MF6550 to work fine with the pixma backend, tested on Ubuntu, so we really need to crack this weird Mac OS X behavior here, if we want step further.</div>
<div>&nbsp;</div>
<div>Nicolas<br><br></div>
<div class="ecxgmail_quote">2010/7/12 <span dir="ltr">&lt;<a href="mailto:twain43@hotmail.com">twain43@hotmail.com</a>&gt;</span><br>
<blockquote class="ecxgmail_quote" style="padding-left: 1ex; border-left: 1px solid rgb(204, 204, 204);">
<div>Ehm...sorry everybody, been out of town a few weeks, couldn't get my hands on the mail....I'm back to the testing board.<br><br>I just read your posts, and wanted to sum up the steps to take. Do please, correct me if I'm wrong:<br>
1. Change backends/pixma_common.h around line 57 from "#ifdef NDEBUG" to "#ifdef NDEBUGBLAAAA". <br>2. Same thing for backends/pixma.c line 70.<br>3. compile, install and test.<br><br>@Nicolas: if I understood your post below, you're suggesting I use "#ifdef NDEBUGPIXMA", instead of the above....am I right? 
<div class="ecxim"><br><br>Twain28<br><br>&gt; Subject: Re: [sane-devel] Testing on Canon MF6580PL<br>&gt; From: <a href="mailto:nicolas0martin@gmail.com">nicolas0martin@gmail.com</a><br></div>&gt; To: <a href="mailto:chris@cnpbagwell.com">chris@cnpbagwell.com</a><br>
&gt; CC: <a href="mailto:twain43@hotmail.com">twain43@hotmail.com</a>; <a href="mailto:sane-devel@lists.alioth.debian.org">sane-devel@lists.alioth.debian.org</a><br>&gt; Date: Mon, 28 Jun 2010 21:24:10 +0200 
<div>
<div></div>
<div class="h5"><br>&gt; <br>&gt; That's good clue indeed.<br>&gt; <br>&gt; Also might be better to change the NDEBUG flag in the pixma code to<br>&gt; something more restrictive, like NDEBUGPIXMA<br>&gt; <br>&gt; Or ... simply to reconsider this conditional code here and there, as it<br>
&gt; was helpful at the time the pixma driver was standalone and not included<br>&gt; into Sane as backend, but is now pretty useless, as pixma logs are<br>&gt; handled directly with Sane flags.<br>&gt; <br>&gt; Nicolas<br>
&gt; <br>&gt; Le lundi 28 juin 2010 à 12:17 -0500, Chris Bagwell a écrit :<br>&gt; &gt; Oh, OK. So one part of the problem is that pixma debug messages<br>&gt; &gt; aren't showing up.<br>&gt; &gt; <br>&gt; &gt; Can the tester verify as a separate task if scanning is working with<br>
&gt; &gt; twain-sane version of libusb though? It seems it may be working now?<br>&gt; &gt; <br>&gt; &gt; On debug output part, I see pixma is using some custom stuff to<br>&gt; &gt; disable when NDEBUG is present. Seems pretty easy that externally<br>
&gt; &gt; included header defines NDEBUG that pixma is including but not<br>&gt; &gt; sanei_debug.h.<br>&gt; &gt; <br>&gt; &gt; A quick test of that theory is to modify the file<br>&gt; &gt; backends/pixma_common.h around line 57 and change "#ifdef NDEBUG" to<br>
&gt; &gt; "#ifdef NDEBUGBLAAAA". Also, similar change needed at<br>&gt; &gt; backends/pixma.c line 70.<br>&gt; &gt; <br>&gt; &gt; Can <br>&gt; &gt; <br>&gt; &gt; On Mon, Jun 28, 2010 at 11:46 AM, Nicolas Martin<br>
&gt; &gt; &lt;<a href="mailto:nicolas0martin@gmail.com">nicolas0martin@gmail.com</a>&gt; wrote:<br>&gt; &gt; Point is, for whatever reason, Pixma debug logs do not show up<br>&gt; &gt; even when setting SANE_DEBUG_PIXMA to a correct level, only<br>
&gt; &gt; SANE_DEBUG and SANE_DEBUG_SANEI_USB produce logs, as showed up<br>&gt; &gt; in the logs twain43 is providing.<br>&gt; &gt; <br>&gt; &gt; Just trying to figure out why this happens when compiled in<br>&gt; &gt; this environment.<br>
&gt; &gt; <br>&gt; &gt; Nicolas<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; 2010/6/28 Chris Bagwell <a href="mailto:chris@cnpbagwell.com">chris@cnpbagwell.com</a><br>&gt; &gt; <br>&gt; &gt; I've been fading in and out of this thread so<br>
&gt; &gt; I do not have total history of your logs.<br>&gt; &gt; <br>&gt; &gt; Loooking at only this log, it seems to show<br>&gt; &gt; scanner working correctly while in test mode.<br>&gt; &gt; Can you do same debug logs but while doing an<br>
&gt; &gt; actual scan? Does that work now with the<br>&gt; &gt; patched libusb from twain-sane (does it<br>&gt; &gt; generate a good pnm file)?<br>&gt; &gt; <br>&gt; &gt; Chris<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>
&gt; &gt; <br>&gt; <br>&gt; <br><br></div></div>
<hr>
Personalizza il tuo Messenger con <a href="http://www.pimpit.it/windowslive.html">nuove e divertenti emoticon</a></div><br>--<br>sane-devel mailing list: <a href="mailto:sane-devel@lists.alioth.debian.org">sane-devel@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/sane-devel">http://lists.alioth.debian.org/mailman/listinfo/sane-devel</a><br>Unsubscribe: Send mail with subject "unsubscribe your_password"<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; to <a href="mailto:sane-devel-request@lists.alioth.debian.org">sane-devel-request@lists.alioth.debian.org</a><br></blockquote></div><br>                                               <br /><hr />10 buoni motivi per scegliere  <a href='http://www.windowslive.it/hotmail/10buonimotivi/index.html' target='_new'> Hotmail</a></body>
</html>