Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
put backtrace offsets on one line
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Strelsky committed Sep 21, 2023
1 parent 49624a3 commit 8c0c088
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libhijacker/source/backtrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ void printBacktrace() {
for (const Frame *__restrict frame = getFramePointer(); frame != nullptr; frame = frame->next) {
if (frame->addr != 0) [[likely]] {
if (frame->addr >= start && frame->addr <= stop) {
__builtin_printf("0x%llx\n", (unsigned long long)frame->addr - start);
__builtin_printf("0x%llx ", (unsigned long long)frame->addr - start);
}
}
}
puts("---backtrace end---");
puts("\n---backtrace end---");
}

0 comments on commit 8c0c088

Please sign in to comment.