nlmon

NetLink MONitor; a lightweight udevadm monitor replacement.
git clone git://r-36.net/nlmon
Log | Files | Refs | LICENSE

commit decf2b20c153ba07c1cbd4414e5c5f062e7d0b59
parent 789e8ca5bf5e5ecae28514a669adf65d3306d5f1
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sun, 15 Apr 2012 23:07:23 +0200

Fixing the manpage and usage. Nldev transition.

Diffstat:
nlmon.1 | 15+++++++++------
nlmon.c | 4++--
2 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/nlmon.1 b/nlmon.1 @@ -11,7 +11,7 @@ .Bk -words .Op Fl h .Op Fl k -.Op Fl u +.Op Fl l .Op Fl f Ar subsystem .Ek . @@ -28,17 +28,20 @@ options and default settings. .Pp .Bl -tag -width ".Fl test Ao Ar string Ac" . +.It Fl f Ar subsystem +This option will filter for the subsystem key in a netlink message +and compare it to the subsystem string. +. +.It Fl h +Show usage. +. .It Fl k Only show netlink messages from the kernel. . .Bd -filled -.It Fl u +.It Fl l Only show netlink messages from libudev. . -.It Fl f -This option will filter for the SUBSYSTEM key in a netlink message -and compare it to the subsystem string. -. .El . .Sh AUTHORS diff --git a/nlmon.c b/nlmon.c @@ -50,7 +50,7 @@ die(char *fmt, ...) void usage(void) { - die("usage: %s [-h] [-ku] [-f subsystem]\n", argv0); + die("usage: %s [-h] [-kl] [-f subsystem]\n", argv0); } int @@ -72,7 +72,7 @@ main(int argc, char *argv[]) case 'k': showudev = 0; break; - case 'u': + case 'l': showkernel = 0; break; default: