diff options
author | Benoît Dejean <bdejean@gmail.com> | 2018-02-17 10:03:02 +0100 |
---|---|---|
committer | Benoît Dejean <bdejean@gmail.com> | 2018-03-07 19:39:36 +0100 |
commit | b450bbc67c31bd6e2d111261dd8d8baa66635405 (patch) | |
tree | a22a25116c1155e8a754e73c94ccd3cb6341f5d2 /examples/netload.c | |
parent | f80b08a86503a75d7fe72ac8e9e67aeec7a2be37 (diff) | |
download | libgtop-b450bbc67c31bd6e2d111261dd8d8baa66635405.tar.gz |
Try to fix all format flags in pprint example.
Diffstat (limited to 'examples/netload.c')
-rw-r--r-- | examples/netload.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/netload.c b/examples/netload.c index 6bd97865..979b245d 100644 --- a/examples/netload.c +++ b/examples/netload.c @@ -118,22 +118,22 @@ main (int argc, char *argv []) "\tAddress:\t\t0x%08x - %s\n" "\tSubnet:\t\t\t0x%08x - %s\n\n" "\tMTU:\t\t\t%d\n" - "\tCollisions:\t\t%llu\n\n" - "\tPackets In:\t\t%llu\n" - "\tPackets Out:\t\t%llu\n" - "\tPackets Total:\t\t%llu\n\n" - "\tBytes In:\t\t%llu\n" - "\tBytes Out:\t\t%llu\n" - "\tBytes Total:\t\t%llu\n\n" - "\tErrors In:\t\t%llu\n" - "\tErrors Out:\t\t%llu\n" - "\tErrors Total:\t\t%llu\n\n" + "\tCollisions:\t\t%" G_GUINT64_FORMAT "\n\n" + "\tPackets In:\t\t%" G_GUINT64_FORMAT "\n" + "\tPackets Out:\t\t%" G_GUINT64_FORMAT "\n" + "\tPackets Total:\t\t%" G_GUINT64_FORMAT "\n\n" + "\tBytes In:\t\t%" G_GUINT64_FORMAT "\n" + "\tBytes Out:\t\t%" G_GUINT64_FORMAT "\n" + "\tBytes Total:\t\t%" G_GUINT64_FORMAT "\n\n" + "\tErrors In:\t\t%" G_GUINT64_FORMAT "\n" + "\tErrors Out:\t\t%" G_GUINT64_FORMAT "\n" + "\tErrors Total:\t\t%" G_GUINT64_FORMAT "\n\n" "\tAddress6:\t\t%s\n" "\tPrefix6:\t\t%s\n" "\tScope6:\t\t\t%#03x\n\n" "\tHarware Address:\t%s\n\n", - netload.flags, - netload.if_flags, + (unsigned long long)netload.flags, + (unsigned long long)netload.if_flags, (guint32) netload.address, address_string, (guint32) netload.subnet, subnet_string, netload.mtu, |