From a42d4638f0335dbfd14c1c9f6b05a7b09703a78e Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Wed, 26 Oct 2011 21:48:00 +0000 Subject: Replace most LOG/CHECK statements with DLOG/DCHECK statements in base. [ Reland of 107042 http://codereview.chromium.org/8368009 ] 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/8341026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107434 0039d316-1c4b-4281-b951-d872f2087c98 --- base/shared_memory_posix.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'base/shared_memory_posix.cc') diff --git a/base/shared_memory_posix.cc b/base/shared_memory_posix.cc index 942a04c..3e5699a 100644 --- a/base/shared_memory_posix.cc +++ b/base/shared_memory_posix.cc @@ -91,7 +91,7 @@ SharedMemoryHandle SharedMemory::NULLHandle() { void SharedMemory::CloseHandle(const SharedMemoryHandle& handle) { DCHECK_GE(handle.fd, 0); if (HANDLE_EINTR(close(handle.fd)) < 0) - PLOG(ERROR) << "close"; + DPLOG(ERROR) << "close"; } bool SharedMemory::CreateAndMapAnonymous(uint32 size) { @@ -175,7 +175,7 @@ bool SharedMemory::CreateNamed(const std::string& name, PLOG(ERROR) << "Unable to access(W_OK|X_OK) " << dir.value(); if (dir.value() == "/dev/shm") { LOG(FATAL) << "This is frequently caused by incorrect permissions on " - << "/dev/shm. Try 'sudo chmod 1777 /dev/shm' to fix."; + << "/dev/shm. Try 'sudo chmod 1777 /dev/shm' to fix."; } } #else -- cgit v1.1