Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 89404 invoked from network); 15 Feb 2005 14:43:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Feb 2005 14:43:27 -0000 Received: (qmail 87713 invoked by uid 500); 15 Feb 2005 14:43:22 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 87664 invoked by uid 500); 15 Feb 2005 14:43:21 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 87650 invoked by uid 99); 15 Feb 2005 14:43:21 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of covener@gmail.com designates 64.233.170.192 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.192) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 15 Feb 2005 06:43:20 -0800 Received: by rproxy.gmail.com with SMTP id c16so941948rne for ; Tue, 15 Feb 2005 06:43:18 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=FVNqHEHpYWb0ecniNntWIFq9ih3TYc8ooszkG7QBhy4LKqYSoWvIRwvxksy0ZUb/t1N406kP1rPKnEw3CB/DW8k9kcZ4SsgshuSOGcDZgsqddVMD13PJQ0jwEw6G9+C+/TuARWKk1FEcZ9T0qaTvPfEpbCfuHl6vGSbBa3Raph4= Received: by 10.38.10.30 with SMTP id 30mr60682rnj; Tue, 15 Feb 2005 06:43:17 -0800 (PST) Received: by 10.38.10.18 with HTTP; Tue, 15 Feb 2005 06:43:17 -0800 (PST) Message-ID: <1404e591050215064330aa8f44@mail.gmail.com> Date: Tue, 15 Feb 2005 09:43:17 -0500 From: Eric Covener Reply-To: Eric Covener To: dev@httpd.apache.org Subject: Re: [PATCH] 2.0.x remove formatting from ap_log_error calls In-Reply-To: <1404e59105021506411b80d983@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1075_11804048.1108478597489" References: <1404e5910502101102690772e5@mail.gmail.com> <1404e59105021506411b80d983@mail.gmail.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_Part_1075_11804048.1108478597489 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thu, 10 Feb 2005 18:48:00 -0500, Jeff Trawick wrote: > On Thu, 10 Feb 2005 14:02:02 -0500, Eric Covener wrote: > > Patch against 2.0.x of below. > > There is at least one other such fix that is in trunk but not in > 2.0.x. See http://svn.apache.org/viewcvs.cgi/httpd/httpd/trunk/server/mpm_common.c?rev=102772&r1=102686&r2=102772 > > Care to add that and possibly other similar fixes to your patch and > post again? That way, folks who would approve it for the 2.0.x branch > would only have to look at one patch. I wasn't able to find any in addition to the one you referenced by searching the last year of source change reports, but I've added the above and one more fix for an ap_log_error call that doesn't exist in trunk (server/config.c) -- Eric Covener covener@gmail.com ------=_Part_1075_11804048.1108478597489 Content-Type: text/x-patch; name=removecontrolchars-2.0.patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="removecontrolchars-2.0.patch" Index: server/config.c =================================================================== --- server/config.c (revision 152672) +++ server/config.c (working copy) @@ -1404,7 +1404,7 @@ errmsg = ap_build_config(&parms, p, ptemp, conftree); if (errmsg) { ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, - "Syntax error in -C/-c directive:" APR_EOL_STR "%s", + "Syntax error in -C/-c directive: %s", errmsg); exit(1); } Index: server/mpm/winnt/mpm_winnt.c =================================================================== --- server/mpm/winnt/mpm_winnt.c (revision 152672) +++ server/mpm/winnt/mpm_winnt.c (working copy) @@ -668,7 +668,7 @@ if ((rv = apr_procattr_io_set(attr, APR_FULL_BLOCK, APR_NO_PIPE, APR_NO_PIPE)) != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_CRIT, rv, ap_server_conf, - "Parent: Unable to create child stdin pipe.\n"); + "Parent: Unable to create child stdin pipe."); apr_pool_destroy(ptemp); return -1; } @@ -679,7 +679,7 @@ || ((rv = apr_procattr_child_out_set(attr, child_out, NULL)) != APR_SUCCESS)) { ap_log_error(APLOG_MARK, APLOG_CRIT, rv, ap_server_conf, - "Parent: Unable to connect child stdout to NUL.\n"); + "Parent: Unable to connect child stdout to NUL."); apr_pool_destroy(ptemp); return -1; } @@ -697,7 +697,7 @@ if ((rv = apr_procattr_child_err_set(attr, child_err, NULL)) != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_CRIT, rv, ap_server_conf, - "Parent: Unable to connect child stderr.\n"); + "Parent: Unable to connect child stderr."); apr_pool_destroy(ptemp); return -1; } Index: server/mpm_common.c =================================================================== --- server/mpm_common.c (revision 152672) +++ server/mpm_common.c (working copy) @@ -225,8 +225,7 @@ ap_log_error(APLOG_MARK, APLOG_ALERT, 0, ap_server_conf, "Child %" APR_PID_T_FMT - " returned a Fatal error..." APR_EOL_STR - "Apache is exiting!", + " returned a Fatal error... server is exiting!", pid->pid); return APEXIT_CHILDFATAL; } Index: modules/proxy/proxy_util.c =================================================================== --- modules/proxy/proxy_util.c (revision 152672) +++ modules/proxy/proxy_util.c (working copy) @@ -707,7 +707,7 @@ if (bits != 32) /* no warning for fully qualified IP address */ ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, - "Warning: NetMask not supplied with IP-Addr; guessing: %s/%ld\n", + "Warning: NetMask not supplied with IP-Addr; guessing: %s/%ld", inet_ntoa(This->addr), bits); } @@ -715,11 +715,11 @@ if (*addr == '\0' && (This->addr.s_addr & ~This->mask.s_addr) != 0) { ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, - "Warning: NetMask and IP-Addr disagree in %s/%ld\n", + "Warning: NetMask and IP-Addr disagree in %s/%ld", inet_ntoa(This->addr), bits); This->addr.s_addr &= This->mask.s_addr; ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, - " Set to %s/%ld\n", + " Set to %s/%ld", inet_ntoa(This->addr), bits); } Index: modules/ssl/ssl_engine_kernel.c =================================================================== --- modules/ssl/ssl_engine_kernel.c (revision 152672) +++ modules/ssl/ssl_engine_kernel.c (working copy) @@ -553,7 +553,7 @@ if (renegotiate && !renegotiate_quick && (r->method_number == M_POST)) { ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server, "SSL Re-negotiation in conjunction " - "with POST method not supported!\n" + "with POST method not supported! " "hint: try SSLOptions +OptRenegotiate"); return HTTP_METHOD_NOT_ALLOWED; @@ -1794,7 +1794,7 @@ else if (where & SSL_CB_ALERT) { char *str = (where & SSL_CB_READ) ? "read" : "write"; ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, - "%s: Alert: %s:%s:%s\n", + "%s: Alert: %s:%s:%s", SSL_LIBRARY_NAME, str, SSL_alert_type_string_long(rc), SSL_alert_desc_string_long(rc)); ------=_Part_1075_11804048.1108478597489--