Andreas Schwab <[email protected]> writes:

> It would, if it would apply.

How about this?

diff --git a/dwarf_prototypes.c b/dwarf_prototypes.c
index 9c36904..a39219e 100644
--- a/dwarf_prototypes.c
+++ b/dwarf_prototypes.c
@@ -8,6 +8,7 @@
 #include <stdio.h>
 #include <elfutils/libdwfl.h>
 #include <dwarf.h>
+#include <inttypes.h>
 #include <stdlib.h>
 #include <errno.h>
 #include <string.h>
@@ -27,7 +28,7 @@
 #include "debug.h"
 
 #define complain(die, format, ...)                                     \
-       debug(DEBUG_FUNCTION, "%s() die '%s' @ 0x%lx: " format,         \
+       debug(DEBUG_FUNCTION, "%s() die '%s' @ 0x%" PRIx64 ": " format, \
              __func__, dwarf_diename(die), dwarf_dieoffset(die),       \
              ##__VA_ARGS__)
 

_______________________________________________
Ltrace-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/ltrace-devel

Reply via email to