kopia lustrzana https://gitlab.com/sane-project/backends
backend/pixma: fix compile with NDEBUG
Fixes: .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/9.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: ./.libs/libpixma.a(libpixma_la-pixma_common.o): in function `sanei_pixma_read_image': pixma_common.c:(.text+0xc05): undefined reference to `DBG' .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/9.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: pixma_common.c:(.text+0xc38): undefined reference to `DBG' .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/9.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: pixma_common.c:(.text+0xcbf): undefined reference to `DBG' Signed-off-by: Peter Seiderer <ps.report@gmx.net>release-1.1.x
rodzic
7dafc52dda
commit
b1021e09e4
|
@ -968,16 +968,16 @@ pixma_read_image (pixma_t * s, void *buf, unsigned len)
|
|||
s->last_source = s->param->source;
|
||||
if ((s->cur_image_size != s->param->image_size) && !s->param->mode_jpeg)
|
||||
{
|
||||
pixma_dbg (1, "WARNING:image size mismatches\n");
|
||||
pixma_dbg (1,
|
||||
PDBG (pixma_dbg (1, "WARNING:image size mismatches\n"));
|
||||
PDBG (pixma_dbg (1,
|
||||
" %"PRIu64" expected (%d lines) but %"PRIu64" received (%"PRIu64" lines)\n",
|
||||
s->param->image_size, s->param->h,
|
||||
s->cur_image_size,
|
||||
s->cur_image_size / s->param->line_size);
|
||||
s->cur_image_size / s->param->line_size));
|
||||
if ((s->cur_image_size % s->param->line_size) != 0)
|
||||
{
|
||||
pixma_dbg (1,
|
||||
"BUG:received data not multiple of line_size\n");
|
||||
PDBG (pixma_dbg (1,
|
||||
"BUG:received data not multiple of line_size\n"));
|
||||
}
|
||||
}
|
||||
if ((s->cur_image_size < s->param->image_size) && !s->param->mode_jpeg)
|
||||
|
|
Ładowanie…
Reference in New Issue