From: Amos Jeffries Date: Fri, 5 Oct 2012 10:26:39 +0000 (+1200) Subject: Polish: convert several opt_parse_cfg_only to DBG_PARSE_NOTE X-Git-Tag: SQUID_3_3_0_1~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aa7e2b359218975c38a7a322668b9a6c0b6c512c;p=thirdparty%2Fsquid.git Polish: convert several opt_parse_cfg_only to DBG_PARSE_NOTE --- diff --git a/src/adaptation/ServiceConfig.cc b/src/adaptation/ServiceConfig.cc index ef81209326..6bc24cc137 100644 --- a/src/adaptation/ServiceConfig.cc +++ b/src/adaptation/ServiceConfig.cc @@ -82,11 +82,11 @@ Adaptation::ServiceConfig::parse() if (strcmp(option, "0") == 0) { // backward compatibility name = "bypass"; value = "off"; - debugs(3, opt_parse_cfg_only?0:1, "UPGRADE: Please use 'bypass=off' option to disable service bypass"); + debugs(3, DBG_PARSE_NOTE(DBG_IMPORTANT), "UPGRADE: Please use 'bypass=off' option to disable service bypass"); } else if (strcmp(option, "1") == 0) { // backward compatibility name = "bypass"; value = "on"; - debugs(3, opt_parse_cfg_only?0:1, "UPGRADE: Please use 'bypass=on' option to enable service bypass"); + debugs(3, DBG_PARSE_NOTE(DBG_IMPORTANT), "UPGRADE: Please use 'bypass=on' option to enable service bypass"); } else { char *eq = strstr(option, "="); const char *sffx = strstr(option, "://"); @@ -117,7 +117,7 @@ Adaptation::ServiceConfig::parse() else if (strcmp(name, "ipv6") == 0) { grokked = grokBool(ipv6, name, value); if (grokked && ipv6 && !Ip::EnableIpv6) - debugs(3, DBG_IMPORTANT, "WARNING: IPv6 is disabled. ICAP service option ignored."); + debugs(3, DBG_PARSE_NOTE(DBG_IMPORTANT), "WARNING: IPv6 is disabled. ICAP service option ignored."); } else if (strcmp(name, "max-conn") == 0) grokked = grokLong(maxConn, name, value); else if (strcmp(name, "on-overload") == 0) { diff --git a/src/cf_gen.cc b/src/cf_gen.cc index 5fdc4ad396..82b4d3adc8 100644 --- a/src/cf_gen.cc +++ b/src/cf_gen.cc @@ -621,7 +621,7 @@ Entry::genParseAlias(const std::string &aName, std::ostream &fout) const fout << "debugs(0, DBG_CRITICAL, \"ERROR: Directive '" << aName << "' is obsolete.\");\n"; for (LineList::const_iterator l = doc.begin(); l != doc.end(); ++l) { // offset line to strip initial whitespace tab byte - fout << " debugs(0, opt_parse_cfg_only?0:1, \"" << aName << " : " << &(*l)[1] << "\");" << std::endl; + fout << " debugs(0, DBG_PARSE_NOTE(DBG_IMPORTANT), \"" << aName << " : " << &(*l)[1] << "\");" << std::endl; } fout << " parse_obsolete(token);"; } else if (!loc.size() || loc.compare("none") == 0) {