From e36afb04297cdadf7969a901b809879a72875a8d Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Sat, 20 Jan 2018 00:59:11 -0800 Subject: Fix regression caused by libbacktrace API change. The stack dump was not printing leading zeros for data after the change to remove uintptr_t types from the libbacktrace API. Bug: 65682279 Test: Created an arm tombstone and an arm64 tombstone and verified Test: that the stack data has leading zeros. Change-Id: I1fbec2c4fa7c8b0fab18894c5628d18c5a580299 --- debuggerd/libdebuggerd/tombstone.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debuggerd/libdebuggerd/tombstone.cpp') diff --git a/debuggerd/libdebuggerd/tombstone.cpp b/debuggerd/libdebuggerd/tombstone.cpp index 320e5dbb9..7d8560213 100644 --- a/debuggerd/libdebuggerd/tombstone.cpp +++ b/debuggerd/libdebuggerd/tombstone.cpp @@ -144,7 +144,7 @@ static void dump_stack_segment(log_t* log, BacktraceMap* backtrace_map, Memory* } else { line += " "; } - line += StringPrintf("%" PRIPTR " %" PRIxPTR, *sp, stack_data[i]); + line += StringPrintf("%" PRIPTR " %" PRIPTR, *sp, static_cast(stack_data[i])); backtrace_map_t map; backtrace_map->FillIn(stack_data[i], &map); -- cgit v1.2.3