[sane-devel] [scanbd] request less debug info when no buttons pressed
Hans Schou
hans.schou at gmail.com
Thu Jan 31 06:18:09 UTC 2013
Hi
To avoid getting too much data in the syslog I usually have debug level 3
(INFO). But I still get a lot of information about buttons not pressed.
Could this patch be added? It report button pressed from INFO level and up,
and it report all buttons in DEBUG level.
--- trunk/src/scanbd/sane.c (revision 172)
+++ trunk/src/scanbd/sane.c (working copy)
@@ -798,7 +798,7 @@
}
}
- slog(SLOG_INFO, "checking option %s number %d (%d) for device
%s: value: %d",
+ slog(value.num_value ? SLOG_INFO : SLOG_DEBUG, "checking
option %s number %d (%d) for device %s: value: %d",
odesc->name, st->opts[si].number, si,
st->dev->name, value);
...or something like that.
/hans
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130131/90277daa/attachment.html>
More information about the sane-devel
mailing list