summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2007-10-01 18:21:46 +0000
committerRoland McGrath <roland@redhat.com>2007-10-01 18:21:46 +0000
commit241ac029bb22a0bb88171085be19d6952fabdd5a (patch)
treef8c3eb0004cfba9e6bdd658222d509a81c81b8d9 /src
parent9860f3f056f0d252e234440c10e1566f1b682b2d (diff)
downloadelfutils-241ac029bb22a0bb88171085be19d6952fabdd5a.tar.gz
2007-10-01 Roland McGrath <roland@redhat.com>
* readelf.c (hex_dump): Fix line header to be hex instead of decimal.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/readelf.c2
2 files changed, 5 insertions, 1 deletions
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 <roland@redhat.com>
+
+ * readelf.c (hex_dump): Fix line header to be hex instead of decimal.
+
2007-09-10 Roland McGrath <roland@redhat.com>
* 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);