diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-25 00:48:25 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-25 00:48:25 +0000 |
commit | 16328530b01dd40c66dd5a36a471610c3e0d9865 (patch) | |
tree | 3d3f17748a3d73a826f877a57a89c9cad8543ccc /base | |
parent | 978ec977b66189279684eb05625f3b253588f617 (diff) | |
download | chromium_src-16328530b01dd40c66dd5a36a471610c3e0d9865.zip chromium_src-16328530b01dd40c66dd5a36a471610c3e0d9865.tar.gz chromium_src-16328530b01dd40c66dd5a36a471610c3e0d9865.tar.bz2 |
Fixed warning on empty --v switch (this time for reals)
BUG=None
TEST=Manual
Review URL: http://codereview.chromium.org/5364001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67360 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/vlog.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/base/vlog.cc b/base/vlog.cc index aca8d0f..8903f39 100644 --- a/base/vlog.cc +++ b/base/vlog.cc @@ -36,11 +36,12 @@ VlogInfo::VlogInfo(const std::string& v_switch, typedef std::pair<std::string, std::string> KVPair; int vlog_level = 0; - if (!v_switch.empty() && base::StringToInt(v_switch, &vlog_level)) { - SetMaxVlogLevel(vlog_level); - } else { - LOG(WARNING) << "Parsed v switch \"" - << v_switch << "\" as " << vlog_level; + if (!v_switch.empty()) { + if (base::StringToInt(v_switch, &vlog_level)) { + SetMaxVlogLevel(vlog_level); + } else { + LOG(WARNING) << "Could not parse v switch \"" << v_switch << "\""; + } } std::vector<KVPair> kv_pairs; |