From: Nico Weber Date: Fri, 2 Jul 2021 14:03:32 +0000 (-0400) Subject: [libunwind] reflow some debug logs for better greppability X-Git-Tag: llvmorg-14-init~2295 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7cdd768ac93c6daae709d7a9b9f309716392211e;p=platform%2Fupstream%2Fllvm.git [libunwind] reflow some debug logs for better greppability "bad second level page" and "second level compressed unwind table" can now be grepped for. (Also remove one of the two spaces between "second" and "level" in the second message.) --- diff --git a/libunwind/src/UnwindCursor.hpp b/libunwind/src/UnwindCursor.hpp index e537ed8..757d980 100644 --- a/libunwind/src/UnwindCursor.hpp +++ b/libunwind/src/UnwindCursor.hpp @@ -1737,14 +1737,16 @@ bool UnwindCursor::getInfoFromCompactEncodingSection(pint_t pc, else funcEnd = firstLevelNextPageFunctionOffset + sects.dso_base; if (pc < funcStart) { - _LIBUNWIND_DEBUG_LOG("malformed __unwind_info, pc=0x%llX not in second " - "level compressed unwind table. funcStart=0x%llX", + _LIBUNWIND_DEBUG_LOG("malformed __unwind_info, pc=0x%llX " + "not in second level compressed unwind table. " + "funcStart=0x%llX", (uint64_t) pc, (uint64_t) funcStart); return false; } if (pc > funcEnd) { - _LIBUNWIND_DEBUG_LOG("malformed __unwind_info, pc=0x%llX not in second " - "level compressed unwind table. funcEnd=0x%llX", + _LIBUNWIND_DEBUG_LOG("malformed __unwind_info, pc=0x%llX " + "not in second level compressed unwind table. " + "funcEnd=0x%llX", (uint64_t) pc, (uint64_t) funcEnd); return false; } @@ -1764,9 +1766,9 @@ bool UnwindCursor::getInfoFromCompactEncodingSection(pint_t pc, pageEncodingIndex * sizeof(uint32_t)); } } else { - _LIBUNWIND_DEBUG_LOG("malformed __unwind_info at 0x%0llX bad second " - "level page", - (uint64_t) sects.compact_unwind_section); + _LIBUNWIND_DEBUG_LOG( + "malformed __unwind_info at 0x%0llX bad second level page", + (uint64_t)sects.compact_unwind_section); return false; }