From 2d3502870c27c0de57cb3c2255264eb967e329c7 Mon Sep 17 00:00:00 2001 From: Nick Spinale Date: Fri, 25 Oct 2024 03:11:45 -0700 Subject: [PATCH] crates/sel4-backtrace/symbolize: Improve output style Signed-off-by: Nick Spinale --- crates/sel4-backtrace/symbolize/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/sel4-backtrace/symbolize/src/lib.rs b/crates/sel4-backtrace/symbolize/src/lib.rs index ea2c3e41d..8aa1e536e 100644 --- a/crates/sel4-backtrace/symbolize/src/lib.rs +++ b/crates/sel4-backtrace/symbolize/src/lib.rs @@ -80,7 +80,7 @@ pub fn symbolize( addrs: impl Iterator, ) -> Result<(), fmt::Error> { for probe in addrs { - write!(w, "0x{:016x}: ", probe)?; + write!(w, "{:#018x} ", probe)?; if opts.do_functions || opts.do_inlines { let mut printed_anything = false; @@ -88,7 +88,7 @@ pub fn symbolize( let mut first = true; while let Some(frame) = frames.next().unwrap() { if !first { - write!(w, " (inlined by) ")?; + write!(w, "{: >18} ", "(inlined by)")?; } first = false; @@ -107,7 +107,7 @@ pub fn symbolize( print_function(w, None, None, opts.demangle)?; } - write!(w, " at ")?; + write!(w, " at ")?; } print_loc(w, frame.location.as_ref())?; @@ -127,7 +127,7 @@ pub fn symbolize( print_function(w, name, None, opts.demangle)?; - write!(w, " at ")?; + write!(w, " at ")?; } print_loc(w, None)?;