Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1733)

Unified Diff: base/files/memory_mapped_file_posix.cc

Issue 23526052: Include What You Use: #include <errno.h> where errno is used, or use DPLOG (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | rlz/lib/recursive_cross_process_lock_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/memory_mapped_file_posix.cc
===================================================================
--- base/files/memory_mapped_file_posix.cc (revision 223350)
+++ base/files/memory_mapped_file_posix.cc (working copy)
@@ -25,7 +25,7 @@
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 @@
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;
}
« no previous file with comments | « no previous file | rlz/lib/recursive_cross_process_lock_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698