From: Michael R Sweet Date: Sat, 14 Nov 2020 13:43:58 +0000 (-0500) Subject: Fix a logging regression that was detected by the automated test suite X-Git-Tag: v2.3.3op1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a868d14c3c202f9b0f6055c602bc71789880bd2;p=thirdparty%2Fcups.git Fix a logging regression that was detected by the automated test suite (Issue #25) --- diff --git a/CHANGES-OPENPRINTING.md b/CHANGES-OPENPRINTING.md index 44e3da6866..dbe3e93408 100644 --- a/CHANGES-OPENPRINTING.md +++ b/CHANGES-OPENPRINTING.md @@ -43,6 +43,8 @@ Changes in CUPS v2.3.3op1 - Fixed output-bin and print-quality handling issues (Issue #18) - Fixed PPD options getting mapped to odd IPP values like "tray---4" (Issue #23) - Fixed remote access to the cupsd.conf and log files (Issue #24) +- Fixed a logging regression caused by a previous change for Apple issue #5604 + (Issue #25) - Fixed fax phone number handling with GNOME (Issue #40) - Fixed potential rounding error in rastertopwg filter (Issue #41) - Fixed the "uri-security-supported" value from the scheduler (Issue #42) diff --git a/scheduler/job.c b/scheduler/job.c index e3ed145202..a1af0603f5 100644 --- a/scheduler/job.c +++ b/scheduler/job.c @@ -2625,7 +2625,7 @@ cupsdSetJobState( else cupsdAddEvent(CUPSD_EVENT_JOB_STATE, job->printer, job, "%s", buffer); - if (newstate == IPP_JOB_STOPPED || newstate == IPP_JOB_ABORTED || newstate == IPP_JOB_HELD) + if (newstate == IPP_JOB_STOPPED || newstate == IPP_JOB_ABORTED) cupsdLogJob(job, CUPSD_LOG_ERROR, "%s", buffer); else cupsdLogJob(job, CUPSD_LOG_INFO, "%s", buffer); @@ -3229,7 +3229,7 @@ finalize_job(cupsd_job_t *job, /* I - Job */ exit_code = job->status; } - cupsdLogJob(job, CUPSD_LOG_INFO, "Backend returned status %d (%s)", + cupsdLogJob(job, CUPSD_LOG_WARN, "Backend returned status %d (%s)", exit_code, exit_code == CUPS_BACKEND_FAILED ? "failed" : exit_code == CUPS_BACKEND_AUTH_REQUIRED ? diff --git a/xcode/CUPS.xcodeproj/project.pbxproj b/xcode/CUPS.xcodeproj/project.pbxproj index 21b1212d9e..4208d10a21 100644 --- a/xcode/CUPS.xcodeproj/project.pbxproj +++ b/xcode/CUPS.xcodeproj/project.pbxproj @@ -7298,7 +7298,7 @@ 72BF96371333042100B1EAD7 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1100; + LastUpgradeCheck = 1220; ORGANIZATIONNAME = "Apple Inc."; TargetAttributes = { 270695FD1CADF3E200FFE5FB = { @@ -11562,6 +11562,7 @@ CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; @@ -11614,6 +11615,7 @@ CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES;