From eb08c16300b5758e9248f95811366368a6f41387 Mon Sep 17 00:00:00 2001 From: "ted.mielczarek@gmail.com" Date: Fri, 27 Feb 2015 13:40:41 +0000 Subject: Formatting tweak for https://breakpad.appspot.com/9774002, add more newlines git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1430 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/processor/stackwalk_common.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/processor') diff --git a/src/processor/stackwalk_common.cc b/src/processor/stackwalk_common.cc index 5c66ea3d..3a6e17fe 100644 --- a/src/processor/stackwalk_common.cc +++ b/src/processor/stackwalk_common.cc @@ -198,7 +198,7 @@ static void PrintStackContents(const std::string &indent, } // Try to find instruction pointers from stack. - printf("\n%sPossible instruction pointers:", indent.c_str()); + printf("\n%sPossible instruction pointers:\n", indent.c_str()); for (uint64_t address = stack_begin; address < stack_end; address += word_length) { StackFrame pointee_frame; @@ -223,20 +223,21 @@ static void PrintStackContents(const std::string &indent, // Print function name. if (!pointee_frame.function_name.empty()) { if (word_length == 4) { - printf("\n%s *(0x%08x) = 0x%08x", indent.c_str(), + printf("%s *(0x%08x) = 0x%08x", indent.c_str(), static_cast(address), static_cast(pointee_frame.instruction)); } else { - printf("\n%s *(0x%016" PRIx64 ") = 0x%016" PRIx64, + printf("%s *(0x%016" PRIx64 ") = 0x%016" PRIx64, indent.c_str(), address, pointee_frame.instruction); } - printf(" <%s> [%s : %d + 0x%" PRIx64 "]", + printf(" <%s> [%s : %d + 0x%" PRIx64 "]\n", pointee_frame.function_name.c_str(), PathnameStripper::File(pointee_frame.source_file_name).c_str(), pointee_frame.source_line, pointee_frame.instruction - pointee_frame.source_line_base); } } + printf("\n"); } // PrintStack prints the call stack in |stack| to stdout, in a reasonably -- cgit v1.2.1