From 241ac029bb22a0bb88171085be19d6952fabdd5a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 1 Oct 2007 18:21:46 +0000 Subject: 2007-10-01 Roland McGrath * readelf.c (hex_dump): Fix line header to be hex instead of decimal. --- src/ChangeLog | 4 ++++ src/readelf.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ChangeLog b/src/ChangeLog index 0d92d721..c8267dda 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2007-10-01 Roland McGrath + + * readelf.c (hex_dump): Fix line header to be hex instead of decimal. + 2007-09-10 Roland McGrath * readelf.c (options): Give -p optional argument, alias --string-dump. diff --git a/src/readelf.c b/src/readelf.c index bb79e28b..2d2e43c5 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -5683,7 +5683,7 @@ hex_dump (const uint8_t *data, size_t len) size_t pos = 0; while (pos < len) { - printf (" 0x%08Zu ", pos); + printf (" 0x%08Zx ", pos); const size_t chunk = MIN (len - pos, 16); -- cgit v1.2.1