diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-16 18:31:40 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-16 18:31:40 +0000 |
commit | 78605ba8458fd4a8de768d90a2834c34e3c1a493 (patch) | |
tree | 839927107ddd803ae108e23cf3a9cb180e88a45c | |
parent | 36424441697b957009738f609c0eae22cf5ded34 (diff) | |
download | chromium_src-78605ba8458fd4a8de768d90a2834c34e3c1a493.zip chromium_src-78605ba8458fd4a8de768d90a2834c34e3c1a493.tar.gz chromium_src-78605ba8458fd4a8de768d90a2834c34e3c1a493.tar.bz2 |
Include What You Use: #include <errno.h> where errno is used, or use DPLOG
R=thakis@chromium.org
Review URL: https://codereview.chromium.org/23526052
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223370 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | base/files/memory_mapped_file_posix.cc | 4 | ||||
-rw-r--r-- | rlz/lib/recursive_cross_process_lock_posix.cc | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/base/files/memory_mapped_file_posix.cc b/base/files/memory_mapped_file_posix.cc index 38b2716..ba00946 100644 --- a/base/files/memory_mapped_file_posix.cc +++ b/base/files/memory_mapped_file_posix.cc @@ -25,7 +25,7 @@ bool MemoryMappedFile::MapFileToMemoryInternal() { struct stat file_stat; if (fstat(file_, &file_stat) == kInvalidPlatformFileValue) { - DLOG(ERROR) << "Couldn't fstat " << file_ << ", errno " << errno; + DPLOG(ERROR) << "fstat " << file_; return false; } length_ = file_stat.st_size; @@ -33,7 +33,7 @@ bool MemoryMappedFile::MapFileToMemoryInternal() { data_ = static_cast<uint8*>( mmap(NULL, length_, PROT_READ, MAP_SHARED, file_, 0)); if (data_ == MAP_FAILED) - DLOG(ERROR) << "Couldn't mmap " << file_ << ", errno " << errno; + DPLOG(ERROR) << "mmap " << file_; return data_ != MAP_FAILED; } diff --git a/rlz/lib/recursive_cross_process_lock_posix.cc b/rlz/lib/recursive_cross_process_lock_posix.cc index 8b271f1..aa15897 100644 --- a/rlz/lib/recursive_cross_process_lock_posix.cc +++ b/rlz/lib/recursive_cross_process_lock_posix.cc @@ -4,6 +4,7 @@ #include "rlz/lib/recursive_cross_process_lock_posix.h" +#include <errno.h> #include <fcntl.h> #include <sys/file.h> #include <sys/stat.h> |