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

Unified Diff: base/linux_util.cc

Issue 8368009: Replace most LOG statements with DLOG statements in base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 | « base/i18n/time_formatting.cc ('k') | base/mac/foundation_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/linux_util.cc
===================================================================
--- base/linux_util.cc (revision 106858)
+++ base/linux_util.cc (working copy)
@@ -88,7 +88,7 @@
const ssize_t n = readlink(path, buf, sizeof(buf) - 1);
if (n == -1) {
if (log) {
- LOG(WARNING) << "Failed to read the inode number for a socket from /proc"
+ DLOG(WARNING) << "Failed to read the inode number for a socket from /proc"
"(" << errno << ")";
}
return false;
@@ -97,8 +97,8 @@
if (memcmp(kSocketLinkPrefix, buf, sizeof(kSocketLinkPrefix) - 1)) {
if (log) {
- LOG(WARNING) << "The descriptor passed from the crashing process wasn't a"
- " UNIX domain socket.";
+ DLOG(WARNING) << "The descriptor passed from the crashing process wasn't "
+ " a UNIX domain socket.";
}
return false;
}
@@ -111,8 +111,8 @@
if (inode_ul == ULLONG_MAX) {
if (log) {
- LOG(WARNING) << "Failed to parse a socket's inode number: the number was "
- "too large. Please report this bug: " << buf;
+ DLOG(WARNING) << "Failed to parse a socket's inode number: the number "
+ "was too large. Please report this bug: " << buf;
}
return false;
}
@@ -200,7 +200,7 @@
DIR* proc = opendir("/proc");
if (!proc) {
- LOG(WARNING) << "Cannot open /proc";
+ DLOG(WARNING) << "Cannot open /proc";
return false;
}
@@ -262,7 +262,7 @@
DIR* task = opendir(buf);
if (!task) {
- LOG(WARNING) << "Cannot open " << buf;
+ DLOG(WARNING) << "Cannot open " << buf;
return -1;
}
« no previous file with comments | « base/i18n/time_formatting.cc ('k') | base/mac/foundation_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698