diff options
| author | Mark Wielaard <[email protected]> | 2012-08-27 15:21:58 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2012-08-27 15:21:58 +0200 |
| commit | 3e44006ae24843eff9b7248f3e250cf0fe41e7aa (patch) | |
| tree | e4b9b6dbb85fdeb1f4428022e67891e72b668f95 /src/readelf.c | |
| parent | e89c500fbbd7a54912b06fce0729367b94b52a50 (diff) | |
readelf.c (print_debug_macro_section): Print offset as PRIx64.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src/readelf.c')
| -rw-r--r-- | src/readelf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/readelf.c b/src/readelf.c index 4ff8ebbd..2954e742 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -6324,8 +6324,8 @@ print_debug_macro_section (Dwfl_Module *dwflmod __attribute__ ((unused)), while (readp < readendp) { - printf (gettext (" Offset: 0x%zx\n"), - readp - (const unsigned char *) data->d_buf); + printf (gettext (" Offset: 0x%" PRIx64 "\n"), + (uint64_t) (readp - (const unsigned char *) data->d_buf)); // Header, 2 byte version, 1 byte flag, optional .debug_line offset, // optional vendor extension macro entry table. |
