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

Unified Diff: tools/android/memtrack_helper/memtrack_helper.h

Issue 2576713002: Fix memtrack_helper for newer versions Android. (Closed)
Patch Set: nit Created 4 years 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 | tools/android/memtrack_helper/memtrack_helper.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/memtrack_helper/memtrack_helper.h
diff --git a/tools/android/memtrack_helper/memtrack_helper.h b/tools/android/memtrack_helper/memtrack_helper.h
index df349c3c3ed6e9e05a5ee6d6c66d3d2f24480502..9a2de37819060c0b6a96f7e1880ac2f8753b224d 100644
--- a/tools/android/memtrack_helper/memtrack_helper.h
+++ b/tools/android/memtrack_helper/memtrack_helper.h
@@ -15,9 +15,11 @@
#include <sys/socket.h>
#include <sys/un.h>
+static const char* const kLogTag = "memtrack_helper";
+
static inline void exit_with_failure(const char* reason) {
perror(reason);
- __android_log_write(ANDROID_LOG_ERROR, "memtrack_helper", reason);
+ __android_log_write(ANDROID_LOG_ERROR, kLogTag, reason);
exit(EXIT_FAILURE);
}
« no previous file with comments | « no previous file | tools/android/memtrack_helper/memtrack_helper.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698