diff options
-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> |