From b91eead1f008706ce14026e227d52444150c79d4 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 30 Sep 2021 09:24:49 -0400 Subject: [PATCH] sonyupdneo: Properly log unknown printer status attributes --- backend_sonyupdneo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend_sonyupdneo.c b/backend_sonyupdneo.c index c998b1e..10a5fcd 100644 --- a/backend_sonyupdneo.c +++ b/backend_sonyupdneo.c @@ -493,7 +493,7 @@ static int updneo_get_status(struct updneo_ctx *ctx) !strcmp("CLS", dict[i].key)) { /* Ignore standard IEEE1284 attributes! */ } else { - if (!strncmp("SC", dict[i].key, 2) && !strncmp("SP", dict[i].key, 2)) + if (!strncmp("SC", dict[i].key, 2) || !strncmp("SP", dict[i].key, 2)) DEBUG("Extra/Unknown IEEE1284 field '%s' = '%s'\n", dict[i].key, dict[i].val); } @@ -699,7 +699,7 @@ static const char *sonyupdneo_prefixes[] = { const struct dyesub_backend sonyupdneo_backend = { .name = "Sony UP-D Neo", - .version = "0.16", + .version = "0.17", .flags = BACKEND_FLAG_BADISERIAL, /* UP-D898MD at least */ .uri_prefixes = sonyupdneo_prefixes, .cmdline_arg = updneo_cmdline_arg,