diff options
author | Thomas Graf <tgr@lsx.localdomain> | 2008-04-29 08:48:34 (GMT) |
---|---|---|
committer | Thomas Graf <tgr@lsx.localdomain> | 2008-04-29 08:48:34 (GMT) |
commit | 25ccbf1dab4d40ddd0fa5343c31aed0a49d76c46 (patch) | |
tree | 9812eb2500c427d99c03060172b5cf2eb8d8d72d | |
parent | 0ca291d9e4ca1a9fd75982e7edb43325b40f5f10 (diff) | |
download | libnl-25ccbf1dab4d40ddd0fa5343c31aed0a49d76c46.zip libnl-25ccbf1dab4d40ddd0fa5343c31aed0a49d76c46.tar.gz libnl-25ccbf1dab4d40ddd0fa5343c31aed0a49d76c46.tar.bz2 |
Prepare nl-list-sockets for 64bit addresses
-rw-r--r-- | src/nl-list-sockets.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nl-list-sockets.c b/src/nl-list-sockets.c index 9a1333c..5961842 100644 --- a/src/nl-list-sockets.c +++ b/src/nl-list-sockets.c @@ -6,7 +6,7 @@ * License as published by the Free Software Foundation version 2.1 * of the License. * - * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch> + * Copyright (c) 2003-2008 Thomas Graf <tgraf@suug.ch> */ #include "utils.h" @@ -33,8 +33,8 @@ int main(int argc, char *argv[]) return -1; } - printf("Address Family PID Groups rmem wmem " \ - "CB refcnt\n"); + printf("Address Family PID Groups rmem " + "wmem CB refcnt\n"); while (fgets(buf, sizeof(buf), fd)) { unsigned long sk, cb; @@ -47,7 +47,7 @@ int main(int argc, char *argv[]) if (ret != 8) continue; - printf("0x%08lx %-16s %-6d %08x %-6d %-6d 0x%08lx %d\n", + printf("0x%016lx %-16s %-6d %08x %-6d %-6d 0x%08lx %d\n", sk, nl_nlfamily2str(proto, p, sizeof(p)), pid, groups, rmem, wmem, cb, refcnt); } |