Index: src/client/linux/microdump_writer/microdump_writer.cc |
diff --git a/src/client/linux/microdump_writer/microdump_writer.cc b/src/client/linux/microdump_writer/microdump_writer.cc |
index d54d490958a0d96e763d37fef307986710e46c60..c2dba35bf64da87ee4953b1d5006da83cfab6771 100644 |
--- a/src/client/linux/microdump_writer/microdump_writer.cc |
+++ b/src/client/linux/microdump_writer/microdump_writer.cc |
@@ -105,9 +105,11 @@ class MicrodumpWriter { |
private: |
// Writes one line to the system log. |
void LogLine(const char* msg) { |
+#if defined(__ANDROID__) |
+ logger::writeToCrashLog(msg); |
+#else |
logger::write(msg, my_strlen(msg)); |
-#if !defined(__ANDROID__) |
- logger::write("\n", 1); // Android logger appends the \n. Linux's doesn't. |
+ logger::write("\n", 1); |
#endif |
} |