kopia lustrzana https://gitlab.com/sane-project/backends
don't log scanned data in genesys backend unless told by debug level
rodzic
3de5c87388
commit
c6f1fa9ca4
|
@ -1,3 +1,7 @@
|
|||
2010-11-17 Stéphane Voltz <stef.dev@free.fr>
|
||||
* backend/genesys.c: don't write scan data unless specified by debug
|
||||
level.
|
||||
|
||||
2010-11-08 Marc Deslauriers <marc.deslauriers@ubuntu.com>
|
||||
* backend/v4l.c: convert v4l1 BGR data to RGB; v4l1 always returns
|
||||
BGR for RGB due to a coding error way back.
|
||||
|
|
|
@ -5137,7 +5137,7 @@ genesys_fill_read_buffer (Genesys_Device * dev)
|
|||
return SANE_STATUS_IO_ERROR;
|
||||
}
|
||||
#ifdef SANE_DEBUG_LOG_RAW_DATA
|
||||
if (rawfile != NULL)
|
||||
if (rawfile != NULL && DBG_LEVEL >= DBG_data)
|
||||
{
|
||||
/*TODO: convert big/little endian if depth == 16.
|
||||
note: xv got this wrong for P5/P6. */
|
||||
|
@ -5347,7 +5347,7 @@ genesys_read_ordered_data (Genesys_Device * dev, SANE_Byte * destination,
|
|||
return SANE_STATUS_EOF;
|
||||
}
|
||||
#ifdef SANE_DEBUG_LOG_RAW_DATA
|
||||
if (rawfile == NULL)
|
||||
if (rawfile == NULL && DBG_LEVEL >= DBG_data)
|
||||
{
|
||||
rawfile = fopen ("raw.pnm", "wb");
|
||||
if (rawfile != NULL)
|
||||
|
|
Ładowanie…
Reference in New Issue