Fix logging errors inside ALOGV

Fix errors exposed by adding checking to disabled ALOGVs.

Change-Id: I36b77bb0ad8dc7661b0f834f20d1179b86134d57
This commit is contained in:
Colin Cross 2014-02-06 20:07:15 -08:00
parent 71de56a08c
commit f4b0b7971c
2 changed files with 3 additions and 2 deletions

View file

@ -93,7 +93,8 @@ bool BacktraceMap::ParseLine(const char* line, backtrace_map_t* map) {
}
ALOGV("Parsed map: start=%p, end=%p, flags=%x, name=%s",
map->start, map->end, map->flags, map->name.c_str());
reinterpret_cast<void*>(map->start), reinterpret_cast<void*>(map->end),
map->flags, map->name.c_str());
return true;
}

View file

@ -279,7 +279,7 @@ static int64_t EntryToIndex(const ZipEntryName* hash_table,
ent = (ent + 1) & (hash_table_size - 1);
}
ALOGV("Zip: Unable to find entry %.*s", name_length, name);
ALOGV("Zip: Unable to find entry %.*s", length, name);
return kEntryNotFound;
}