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..920a81c48ecff810778e23f404bb13d7f926699b 100644 |
--- a/src/client/linux/microdump_writer/microdump_writer.cc |
+++ b/src/client/linux/microdump_writer/microdump_writer.cc |
@@ -105,8 +105,10 @@ class MicrodumpWriter { |
private: |
// Writes one line to the system log. |
void LogLine(const char* msg) { |
+#if defined(__ANDROID__) |
+ logger::writeToCrashLog(msg); |
Lei Zhang
2015/08/13 21:07:57
nit: indentation
Primiano Tucci (use gerrit)
2015/08/14 09:16:46
Done.
|
+#else |
logger::write(msg, my_strlen(msg)); |
-#if !defined(__ANDROID__) |
logger::write("\n", 1); // Android logger appends the \n. Linux's doesn't. |
Lei Zhang
2015/08/13 21:07:57
You can probably omit or shorten the comment now?
Primiano Tucci (use gerrit)
2015/08/14 09:16:46
Done.
|
#endif |
} |