diff options
Diffstat (limited to 'base/shared_memory_posix.cc')
-rw-r--r-- | base/shared_memory_posix.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/shared_memory_posix.cc b/base/shared_memory_posix.cc index 8828b10..34e7b72 100644 --- a/base/shared_memory_posix.cc +++ b/base/shared_memory_posix.cc @@ -13,6 +13,7 @@ #include "base/file_util.h" #include "base/logging.h" #include "base/platform_thread.h" +#include "base/safe_strerror_posix.h" #include "base/string_util.h" namespace base { @@ -188,8 +189,7 @@ bool SharedMemory::CreateOrOpen(const std::wstring &name, if (fp == NULL) { if (posix_flags & O_CREAT) - LOG(ERROR) << "Creating shared memory in " << path.value() << " failed: " - << strerror(errno); + PLOG(ERROR) << "Creating shared memory in " << path.value() << " failed"; return false; } @@ -291,7 +291,7 @@ void SharedMemory::LockOrUnlockCommon(int function) { << " function:" << function << " fd:" << mapped_file_ << " errno:" << errno - << " msg:" << strerror(errno); + << " msg:" << safe_strerror(errno); } } } |