From 6a734e2d1accfc2d67942e23c0ceef75ca43318d Mon Sep 17 00:00:00 2001 From: Till Kamppeter Date: Mon, 31 Jan 2022 12:56:54 -0300 Subject: [PATCH] libcupsfilters: In cupsFindAttr() removed message output to stderr --- cupsfilters/attr.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cupsfilters/attr.c b/cupsfilters/attr.c index 81ca9bc62..ab82dd28b 100644 --- a/cupsfilters/attr.c +++ b/cupsfilters/attr.c @@ -63,42 +63,33 @@ cupsFindAttr(ppd_file_t *ppd, /* I - PPD file */ */ snprintf(spec, specsize, "%s.%s.%s", colormodel, media, resolution); - fprintf(stderr, "DEBUG2: Looking for \"*%s %s\"...\n", name, spec); if ((attr = ppdFindAttr(ppd, name, spec)) != NULL && attr->value != NULL) return (attr); snprintf(spec, specsize, "%s.%s", colormodel, resolution); - fprintf(stderr, "DEBUG2: Looking for \"*%s %s\"...\n", name, spec); if ((attr = ppdFindAttr(ppd, name, spec)) != NULL && attr->value != NULL) return (attr); snprintf(spec, specsize, "%s", colormodel); - fprintf(stderr, "DEBUG2: Looking for \"*%s %s\"...\n", name, spec); if ((attr = ppdFindAttr(ppd, name, spec)) != NULL && attr->value != NULL) return (attr); snprintf(spec, specsize, "%s.%s", media, resolution); - fprintf(stderr, "DEBUG2: Looking for \"*%s %s\"...\n", name, spec); if ((attr = ppdFindAttr(ppd, name, spec)) != NULL && attr->value != NULL) return (attr); snprintf(spec, specsize, "%s", media); - fprintf(stderr, "DEBUG2: Looking for \"*%s %s\"...\n", name, spec); if ((attr = ppdFindAttr(ppd, name, spec)) != NULL && attr->value != NULL) return (attr); snprintf(spec, specsize, "%s", resolution); - fprintf(stderr, "DEBUG2: Looking for \"*%s %s\"...\n", name, spec); if ((attr = ppdFindAttr(ppd, name, spec)) != NULL && attr->value != NULL) return (attr); spec[0] = '\0'; - fprintf(stderr, "DEBUG2: Looking for \"*%s\"...\n", name); if ((attr = ppdFindAttr(ppd, name, spec)) != NULL && attr->value != NULL) return (attr); - fprintf(stderr, "DEBUG2: No instance of \"*%s\" found...\n", name); - return (NULL); } -- 2.47.3