diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-25 03:06:12 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-25 03:06:12 +0000 |
commit | 2f4a8e1220d91ba95c2c46ec232dd53d27807ecd (patch) | |
tree | a353800ca5728e7c26423af7cccedf9812404d9a /base/process_util_openbsd.cc | |
parent | 27488c22fe34d431fa34576032d8a0fc92b61572 (diff) | |
download | chromium_src-2f4a8e1220d91ba95c2c46ec232dd53d27807ecd.zip chromium_src-2f4a8e1220d91ba95c2c46ec232dd53d27807ecd.tar.gz chromium_src-2f4a8e1220d91ba95c2c46ec232dd53d27807ecd.tar.bz2 |
Revert 107042 - Replace most LOG/CHECK statements with DLOG/DCHECK statements in base.
I tried hard not to change CHECKs that had side effects. I kept fatal checks
that seemed security or debugging-info (in crash reports) sensitive, and ones
that seems particularly well-conceived.
Review URL: http://codereview.chromium.org/8368009
TBR=brettw@chromium.org
Review URL: http://codereview.chromium.org/8351025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107051 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util_openbsd.cc')
-rw-r--r-- | base/process_util_openbsd.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/base/process_util_openbsd.cc b/base/process_util_openbsd.cc index d76e68f..b442e93 100644 --- a/base/process_util_openbsd.cc +++ b/base/process_util_openbsd.cc @@ -64,7 +64,7 @@ ProcessIterator::ProcessIterator(const ProcessFilter* filter) do { size_t len = 0; if (sysctl(mib, arraysize(mib), NULL, &len, NULL, 0) < 0) { - DLOG(ERROR) << "failed to get the size needed for the process list"; + LOG(ERROR) << "failed to get the size needed for the process list"; kinfo_procs_.resize(0); done = true; } else { @@ -78,7 +78,7 @@ ProcessIterator::ProcessIterator(const ProcessFilter* filter) // If we get a mem error, it just means we need a bigger buffer, so // loop around again. Anything else is a real error and give up. if (errno != ENOMEM) { - DLOG(ERROR) << "failed to get the process list"; + LOG(ERROR) << "failed to get the process list"; kinfo_procs_.resize(0); done = true; } @@ -92,7 +92,7 @@ ProcessIterator::ProcessIterator(const ProcessFilter* filter) } while (!done && (try_num++ < max_tries)); if (!done) { - DDLOG(ERROR) << "failed to collect the process list in a few tries"; + LOG(ERROR) << "failed to collect the process list in a few tries"; kinfo_procs_.resize(0); } } @@ -137,7 +137,7 @@ bool ProcessIterator::CheckForNextProcess() { // to populate |entry_.exe_file_|. size_t exec_name_end = data.find('\0'); if (exec_name_end == std::string::npos) { - DLOG(ERROR) << "command line data didn't match expected format"; + LOG(ERROR) << "command line data didn't match expected format"; continue; } |