libfdtrack: When dump fdsan fd owner, happen NE

When dump fdsan fd owner, happen NE. This because the format specifier
flag '#' is not supported by Bionic out_vformat<BufferOutputStream>.

Bug: 153611483
Test: jmgao@ verified manually
Change-Id: I7191c3b2b621ddcc0397874f8a69391e58232ac8
This commit is contained in:
Yuxian Xu 2020-04-09 10:35:37 +08:00 committed by Josh Gao
parent eee26de4dc
commit 3a5ddd72c3

View file

@ -166,7 +166,7 @@ void fdtrack_dump() {
void*) {
uint64_t fdsan_owner = android_fdsan_get_owner_tag(fd);
if (fdsan_owner != 0) {
async_safe_format_log(ANDROID_LOG_INFO, "fdtrack", "fd %d: (owner = %#" PRIx64 ")", fd,
async_safe_format_log(ANDROID_LOG_INFO, "fdtrack", "fd %d: (owner = 0x%" PRIx64 ")", fd,
fdsan_owner);
} else {
async_safe_format_log(ANDROID_LOG_INFO, "fdtrack", "fd %d: (unowned)", fd);