improve android logger, by stripping \r, because android studio suppresses logs that ends with \r.

This commit is contained in:
Simon Morlat 2016-03-23 10:57:53 +01:00
parent 37b8bfcb33
commit 2be885bb35

View file

@ -81,7 +81,10 @@ void linphone_android_log_handler(int prio, char *str) {
} else {
current = str;
while ((next = strchr(current, '\n')) != NULL) {
*next = '\0';
if (next != str && next[-1] == '\r')
next[-1] = '\0';
__android_log_write(prio, LogDomain, current);
current = next + 1;
}