SCM

[#313851] sane-backends: Warning should be printed to stderr, not stdout

View Trackers | Bugs | Download .csv | Monitor

Date:
2012-10-07 02:17
Priority:
3
State:
Closed
Submitted by:
Anthony Bentley (bentley-guest)
Assigned to:
Paul Newall (paulnewall-guest)
Category:
backends (drivers)
Group:
None
Resolution:
Fixed
 
Summary:
sane-backends: Warning should be printed to stderr, not stdout

Detailed description
When I run scanimage(1), this message is printed to stdout:

Failed cupsGetDevices

Since scanimage(1) also outputs image data to stdout, this corrupts the final image (though passing it through 'grep -v "Failed cupsGetDevices"' is a workaround). I believe the message should be printed to stderr instead.

The message seems to be the one in sane-backends-1.0.23, backend/kodakio.c, line 2200.

Followup

Message
Date: 2012-10-07 23:41
Sender: Paul Newall

I hope this is now fixed in GIT. The message uses DBG. I also added the value of the error returned hoping that helps to identify the underlying problem that caused the error message.
Date: 2012-10-07 11:09
Sender: m. allan noah

Yes- an ugly bug. Thanks for the report.

Attached Files:

Changes:

Field Old Value Date By
status_idOpen2012-10-27 08:57paulnewall-guest
close_dateNone2012-10-27 08:57paulnewall-guest
ResolutionNone2012-10-19 14:15paulnewall-guest
assigned_tonone2012-10-07 11:09kitno-guest
Powered By FusionForge
Show source