summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bluetooth/l2control/l2control.c
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2011-04-19 16:21:57 +0000
committeremax <emax@FreeBSD.org>2011-04-19 16:21:57 +0000
commit79542a929deff2bec2296c282a7961f5ee1b8cd6 (patch)
tree42f7fdf9c72a9c39e560d2e55b0072d77f13cb7a /usr.sbin/bluetooth/l2control/l2control.c
parent830058933714d904d4f17fd73a72b0cbc425409e (diff)
downloadFreeBSD-src-79542a929deff2bec2296c282a7961f5ee1b8cd6.zip
FreeBSD-src-79542a929deff2bec2296c282a7961f5ee1b8cd6.tar.gz
Improve the man page and l2control's usage() a bit.
Submitted by: arundel MFC after: 1 week
Diffstat (limited to 'usr.sbin/bluetooth/l2control/l2control.c')
-rw-r--r--usr.sbin/bluetooth/l2control/l2control.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/bluetooth/l2control/l2control.c b/usr.sbin/bluetooth/l2control/l2control.c
index 585021c..fdbf2f5b 100644
--- a/usr.sbin/bluetooth/l2control/l2control.c
+++ b/usr.sbin/bluetooth/l2control/l2control.c
@@ -207,7 +207,14 @@ print_l2cap_command(struct l2cap_command *category)
static void
usage(void)
{
- fprintf(stdout, "Usage: l2control -a BD_ADDR [-n] [-h] cmd [p1] [..]]\n");
+ fprintf(stderr, "Usage: l2control [-hn] -a local cmd [params ..]\n");
+ fprintf(stderr, "Where:\n");
+ fprintf(stderr, " -a local Specify local device to connect to\n");
+ fprintf(stderr, " -h Display this message\n");
+ fprintf(stderr, " -n Show addresses as numbers\n");
+ fprintf(stderr, " cmd Supported command " \
+ "(see l2control help)\n");
+ fprintf(stderr, " params Optional command parameters\n");
exit(255);
} /* usage */
OpenPOWER on IntegriCloud