summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--liblog/logprint.c8
-rw-r--r--rootdir/init.rc1
2 files changed, 8 insertions, 1 deletions
diff --git a/liblog/logprint.c b/liblog/logprint.c
index 59fed9b..f2dd79f 100644
--- a/liblog/logprint.c
+++ b/liblog/logprint.c
@@ -374,6 +374,13 @@ int android_log_processLogBuffer(struct logger_entry *buf,
entry->messageLen = buf->len - preambleAndNullLen;
entry->message = entry->tag + tag_len + 1;
+ if (entry->messageLen != strlen(entry->message)) {
+ fprintf(stderr,
+ "+++ LOG: Message length inconsistent. Expected %d, got %d\n",
+ entry->messageLen, strlen(entry->message));
+ return -1;
+ }
+
return 0;
}
@@ -830,7 +837,6 @@ char *android_log_formatLogLine (
while(pm < (entry->message + entry->messageLen)) {
const char *lineStart;
size_t lineLen;
-
lineStart = pm;
// Find the next end-of-line in message
diff --git a/rootdir/init.rc b/rootdir/init.rc
index af4967e..3af0943 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -257,6 +257,7 @@ on boot
setprop net.tcp.buffersize.wifi 524288,1048576,2097152,262144,524288,1048576
setprop net.tcp.buffersize.lte 524288,1048576,2097152,262144,524288,1048576
setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208
+ setprop net.tcp.buffersize.hspa 4094,87380,262144,4096,16384,262144
setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040
setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680