Return correct length from pmsgRead()

Bug: 28610769
Change-Id: I38cac786ca43ef8d9530f4e2e5a0bdd4cc3bccef
This commit is contained in:
Rubin Xu 2016-05-05 16:46:24 +01:00
parent ea41a18c93
commit 08660a811e
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ static int pmsgRead(struct android_log_logger_list *logger_list,
log_msg->entry_v4.uid = buf.p.uid;
}
return ret;
return ret + log_msg->entry_v4.hdr_size;
}
}