>PROJECTS (and TODO) file I contacted Dick Bruijn and asked about this
>entry (2000-08-04). He answered that he has working code (based on
>microtek.c) would send the code to you as soon as he has some time.
I got the code from him, so that is all set.
>Could you please have a look at the other two points in TODO
>concerning microtek? Thanks.
They are:
* Fix backends where sane_exit() do not release memory allocated by
sane_get_devices().
--> no sweat (and, it seems that I actually had a comment to myself in
the code from long ago wondering if this should be done....)
* Use DBG(...) instead of fprintf(stderr, ...) or printf
- microtek
--> this is not so simple.
There are a lot of places where I used 'fprintf(stderr, ...)'
in order to produce readable output; usually, such code is
conditioned off of DBG_LEVEL like so (per an early discussion
with David Mosberger-Tang on the right way to do this):
if (DBG_LEVEL >= 192) {
int i;
fprintf(stderr, "MSL: ");
for (i=0;i<6+comm[4];i++) fprintf(stderr, "%2x ", comm[i]);
fprintf(stderr, "\n");
}
There is no way to produce readable output using DBG(...) in a
situation like this, because of all the stuff that DBG() prepends
and appends to its arguments.
Any suggestions?
Perhaps an additional, raw form of DBG(...) ?
-matt m.
-- 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 21 2001 - 11:22:20 PDT