Skip to content

Commit

Permalink
Use 0xdeadbeef pointer format in CallStack.print_frame (#4170)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija authored and bcardiff committed Mar 21, 2017
1 parent 64e7b42 commit ae678b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/callstack.cr
Expand Up @@ -131,15 +131,15 @@ struct CallStack
if frame
offset, sname = frame
if repeated_frame.count == 0
LibC.dprintf 2, "[%ld] %s +%ld\n", repeated_frame.ip, sname, offset
LibC.dprintf 2, "[0x%lx] %s +%ld\n", repeated_frame.ip, sname, offset
else
LibC.dprintf 2, "[%ld] %s +%ld (%ld times)\n", repeated_frame.ip, sname, offset, repeated_frame.count + 1
LibC.dprintf 2, "[0x%lx] %s +%ld (%ld times)\n", repeated_frame.ip, sname, offset, repeated_frame.count + 1
end
else
if repeated_frame.count == 0
LibC.dprintf 2, "[%ld] ???\n", repeated_frame.ip
LibC.dprintf 2, "[0x%lx] ???\n", repeated_frame.ip
else
LibC.dprintf 2, "[%ld] ??? (%ld times)\n", repeated_frame.ip, repeated_frame.count + 1
LibC.dprintf 2, "[0x%lx] ??? (%ld times)\n", repeated_frame.ip, repeated_frame.count + 1
end
end
end
Expand Down

0 comments on commit ae678b2

Please sign in to comment.