[error] Better logging of printer errors.

This commit is contained in:
Solomon Peachy 2012-11-21 23:36:18 -05:00
parent 3a0ac481cb
commit 21014052dd
3 changed files with 6 additions and 4 deletions

View file

@ -50,7 +50,7 @@
or newer installed. (This backend is bundled with gutenprint starting with
v5.2.10)
Without the restof gutenprint installed, this is useless as a CUPS backend.
Without the rest of gutenprint installed, this is useless as a CUPS backend.
***************************************************************************
Standalone usage:

View file

@ -50,7 +50,7 @@
#define USB_PID_CANON_ES30 0x31B0
#define USB_PID_CANON_ES40 0x31EE
#define USB_PID_CANON_CP10 0x304A
#define USB_PID_CANON_CP100 0x3063 // - incoming G
#define USB_PID_CANON_CP100 0x3063
#define USB_PID_CANON_CP200 0x307C
#define USB_PID_CANON_CP220 0x30BD
#define USB_PID_CANON_CP300 0x307D
@ -438,9 +438,10 @@ top:
}
fflush(stderr);
/* Error detection */
if (printers[printer_type].error_offset != -1 &&
rdbuf[printers[printer_type].error_offset]) {
ERROR("error condition; aborting. (Out of ribbon/paper?)\n");
ERROR("error condition %02x; aborting. (Out of ribbon/paper?)\n", rdbuf[printers[printer_type].error_offset]);
ret = 4;
goto done_claimed;
}

View file

@ -172,9 +172,10 @@ top:
}
fflush(stderr);
/* Error detection */
if (printers[printer_type].error_offset != -1 &&
rdbuf[printers[printer_type].error_offset]) {
ERROR("error condition; aborting. (Out of ribbon/paper?)\n");
ERROR("error condition %02x; aborting. (Out of ribbon/paper?)\n", rdbuf[printers[printer_type].error_offset]);
return 4;
}