]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
2007-10-01 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Mon, 1 Oct 2007 18:21:46 +0000 (18:21 +0000)
committerRoland McGrath <roland@redhat.com>
Mon, 1 Oct 2007 18:21:46 +0000 (18:21 +0000)
* readelf.c (hex_dump): Fix line header to be hex instead of decimal.

src/ChangeLog
src/readelf.c

index 0d92d721247cecbda986083a9490a4ccaaa9dc5f..c8267ddaee0e058d2b96e124cd32215a8370f977 100644 (file)
@@ -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.
index bb79e28b6fbed1977e2160e16c14844f42f06dc2..2d2e43c5835ecf5b724c031dab5bd255b3a6b01e 100644 (file)
@@ -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);