stack.c (print_frames): Print 0x before build-id hex-offset.
authorMark Wielaard <mjw@redhat.com>
Thu, 2 Jan 2014 22:59:41 +0000 (23:59 +0100)
committerMark Wielaard <mjw@redhat.com>
Thu, 2 Jan 2014 22:59:41 +0000 (23:59 +0100)
Signed-off-by: Mark Wielaard <mjw@redhat.com>
src/ChangeLog
src/stack.c

index 6a915a1..8f1df36 100644 (file)
@@ -1,5 +1,9 @@
 2014-01-02  Mark Wielaard  <mjw@redhat.com>
 
+       * stack.c (print_frames): Print 0x before build-id hex-offset.
+
+2014-01-02  Mark Wielaard  <mjw@redhat.com>
+
        * stack.c (maxframes): Increase to 2048.
        (struct frames): Add allocated field.
        (frame_callback): If frames used is frames allocated, realloc.
index f9f964a..623dc5f 100644 (file)
@@ -255,7 +255,8 @@ print_frames (struct frames *frames, pid_t tid, int dwflerr, const char *what)
              do
                printf ("%02" PRIx8, *id++);
              while (--id_len > 0);
-             printf ("]@0x%0" PRIx64 "+%" PRIx64, start, pc_adjusted - start);
+             printf ("]@0x%0" PRIx64 "+0x%" PRIx64,
+                     start, pc_adjusted - start);
            }
        }