mitsu9550: Log the details when we fail due to a media mismatch.

This commit is contained in:
Solomon Peachy 2015-01-22 13:25:48 -05:00
parent 7a7d14687b
commit 746e3feebb
1 changed files with 3 additions and 3 deletions

View File

@ -382,7 +382,7 @@ top:
return CUPS_BACKEND_HOLD;
}
if (validate_media(media->type, ctx->cols, ctx->rows)) {
ERROR("Incorrect media type for printjob!\n");
ERROR("Incorrect media (%d) type for printjob (%dx%d)!\n", media->type, ctx->cols, ctx->rows);
return CUPS_BACKEND_HOLD;
}
@ -429,7 +429,7 @@ top:
return CUPS_BACKEND_HOLD;
}
if (validate_media(media->type, ctx->cols, ctx->rows)) {
ERROR("Incorrect media type for printjob!\n");
ERROR("Incorrect media (%d) type for printjob (%dx%d)!\n", media->type, ctx->cols, ctx->rows);
return CUPS_BACKEND_HOLD;
}
@ -787,7 +787,7 @@ static int mitsu9550_cmdline_arg(void *vctx, int argc, char **argv)
/* Exported */
struct dyesub_backend mitsu9550_backend = {
.name = "Mitsubishi CP-9550DW-S",
.version = "0.11",
.version = "0.12",
.uri_prefix = "mitsu9550",
.cmdline_usage = mitsu9550_cmdline,
.cmdline_arg = mitsu9550_cmdline_arg,