Fix address formatting, somehow it was left-aligned
This commit is contained in:
parent
10e7a5e442
commit
b2fe396d70
@ -108,7 +108,7 @@ namespace cpptrace {
|
||||
if(is_inline) {
|
||||
str += microfmt::format("{<{}}", 2 * sizeof(frame_ptr) + 2, "(inlined)");
|
||||
} else {
|
||||
str += microfmt::format("0x{<{}:0h}", 2 * sizeof(frame_ptr), raw_address);
|
||||
str += microfmt::format("0x{>{}:0h}", 2 * sizeof(frame_ptr), raw_address);
|
||||
}
|
||||
if(!symbol.empty()) {
|
||||
str += microfmt::format(" in {}", symbol);
|
||||
@ -166,7 +166,7 @@ namespace cpptrace {
|
||||
if(frame.is_inline) {
|
||||
line += microfmt::format("{<{}}", 2 * sizeof(frame_ptr) + 2, "(inlined)");
|
||||
} else {
|
||||
line += microfmt::format("{}0x{<{}:0h}{}", blue, 2 * sizeof(frame_ptr), frame.raw_address, reset);
|
||||
line += microfmt::format("{}0x{>{}:0h}{}", blue, 2 * sizeof(frame_ptr), frame.object_address, reset);
|
||||
}
|
||||
if(!frame.symbol.empty()) {
|
||||
line += microfmt::format(" in {}{}{}", yellow, frame.symbol, reset);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user