summaryrefslogtreecommitdiff
path: root/backend/epson2-commands.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-10-08 12:32:49 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-10-08 12:32:49 +0200
commitcfd27ef2ad8b005fd47ab41ef29b71d9e3d48201 (patch)
tree56cb8849a5df91b19b72fd4f48c79c343cd9bc5e /backend/epson2-commands.c
parentba8d09abe681600aad991f4a75e904615b7ed29f (diff)
Imported Upstream version 1.0.25upstream/1.0.25
Diffstat (limited to 'backend/epson2-commands.c')
-rw-r--r--backend/epson2-commands.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/backend/epson2-commands.c b/backend/epson2-commands.c
index a84630b..eccd4ba 100644
--- a/backend/epson2-commands.c
+++ b/backend/epson2-commands.c
@@ -333,7 +333,7 @@ esci_set_gamma_table(Epson_Scanner * s)
/* Print the gamma tables before sending them to the scanner */
- if (DBG_LEVEL >= 10) {
+ if (DBG_LEVEL >= 16) {
int c, i, j;
for (c = 0; c < 3; c++) {
@@ -347,7 +347,8 @@ esci_set_gamma_table(Epson_Scanner * s)
s->gamma_table[c][i + j]);
strcat(gammaValues, newValue);
}
- DBG(11, "gamma table[%d][%d] %s\n", c, i,
+
+ DBG(16, "gamma table[%d][%d] %s\n", c, i,
gammaValues);
}
}
@@ -679,8 +680,10 @@ esci_set_scanning_parameter(SANE_Handle handle, unsigned char *buf)
return status;
status = e2_cmd_simple(s, buf, 64);
- if (status != SANE_STATUS_GOOD)
+ if (status != SANE_STATUS_GOOD) {
+ DBG(1, "%s: invalid scanning parameters\n", __func__);
return status;
+ }
return SANE_STATUS_GOOD;
}