Merge "liblog: logprint followup"
am: 60c77ed265
Change-Id: I89e5d0b5b52bcd1e9b17e07fd17f14479c25791b
This commit is contained in:
commit
7cb2658b26
1 changed files with 7 additions and 7 deletions
|
|
@ -625,14 +625,14 @@ static inline uint64_t get8LE(const uint8_t* src)
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool findChar(const char** cp, size_t* len, int c) {
|
static bool findChar(const char** cp, size_t* len, int c) {
|
||||||
while (*len && isspace(**cp)) {
|
while ((*len) && isspace(*(*cp))) {
|
||||||
++*cp;
|
++(*cp);
|
||||||
--*len;
|
--(*len);
|
||||||
}
|
}
|
||||||
if (c == INT_MAX) return *len;
|
if (c == INT_MAX) return *len;
|
||||||
if (*len && (**cp == c)) {
|
if ((*len) && (*(*cp) == c)) {
|
||||||
++*cp;
|
++(*cp);
|
||||||
--*len;
|
--(*len);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -991,7 +991,7 @@ no_room:
|
||||||
LIBLOG_ABI_PUBLIC int android_log_processBinaryLogBuffer(
|
LIBLOG_ABI_PUBLIC int android_log_processBinaryLogBuffer(
|
||||||
struct logger_entry *buf,
|
struct logger_entry *buf,
|
||||||
AndroidLogEntry *entry,
|
AndroidLogEntry *entry,
|
||||||
const EventTagMap *map __unused,
|
const EventTagMap *map __unused, // only on !__ANDROID__
|
||||||
char *messageBuf, int messageBufLen)
|
char *messageBuf, int messageBufLen)
|
||||||
{
|
{
|
||||||
size_t inCount;
|
size_t inCount;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue