[sane-devel] [scanbd] request less debug info when no buttons pressed
hans.schou at gmail.com
Thu Jan 31 06:18:09 UTC 2013
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,
...or something like that.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sane-devel