summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBenoit Dejean <bdejean@gmail.com>2015-06-21 15:05:32 +0200
committerRobert Roth <robert.roth.off@gmail.com>2015-06-26 02:57:41 +0300
commit0a94dc799219bfc8d3149a105f9c8c3605e477fe (patch)
tree9005aa30f6b1db28280e2eaad6356819c0751c82 /examples
parent50b5dea402c284addf65c96cfaaeca547c43fe5d (diff)
downloadlibgtop-0a94dc799219bfc8d3149a105f9c8c3605e477fe.tar.gz
Display inode number without zero padding.
Diffstat (limited to 'examples')
-rw-r--r--examples/procmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/procmap.c b/examples/procmap.c
index 32cffadf..e451eeb2 100644
--- a/examples/procmap.c
+++ b/examples/procmap.c
@@ -140,10 +140,10 @@ main (int argc, char *argv [])
if (sizeof (void*) == 8)
format = "%016lx-%016lx +%016lx (%8lu bytes mapped) - "
- "%02x:%02x %08lu - %.*s";
+ "%02x:%02x % 8lu - %.*s";
else
format = "%08lx-%08lx +%08lx (%8lu bytes mapped) - "
- "%02x:%02x %08lu - %.*s";
+ "%02x:%02x % 8lu - %.*s";
fprintf (stderr, format,
(unsigned long) maps [i].start,