summaryrefslogtreecommitdiff
path: root/usr.sbin/pcictl
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2014-08-31 09:59:08 +0000
committerwiz <wiz@NetBSD.org>2014-08-31 09:59:08 +0000
commit1447fe10e728a81645fc72ada5617abba7dbd640 (patch)
treefa18049dddc980032c78c9d2260fdb1da3aeb64d /usr.sbin/pcictl
parent7ef7291e490403d9d5c7f8f0f1b7cc629f2a7dd8 (diff)
Sort options.
Diffstat (limited to 'usr.sbin/pcictl')
-rw-r--r--usr.sbin/pcictl/pcictl.85
-rw-r--r--usr.sbin/pcictl/pcictl.c6
2 files changed, 5 insertions, 6 deletions
diff --git a/usr.sbin/pcictl/pcictl.8 b/usr.sbin/pcictl/pcictl.8
index 2acdb21cda5..2c4651223c4 100644
--- a/usr.sbin/pcictl/pcictl.8
+++ b/usr.sbin/pcictl/pcictl.8
@@ -1,4 +1,4 @@
-.\" $NetBSD: pcictl.8,v 1.12 2014/08/31 09:16:54 mrg Exp $
+.\" $NetBSD: pcictl.8,v 1.13 2014/08/31 09:59:08 wiz Exp $
.\"
.\" Copyright 2001 Wasabi Systems, Inc.
.\" All rights reserved.
@@ -55,8 +55,7 @@ on a PCI bus.
The following commands are available:
.Pp
.Cm list
-.Op Fl n
-.Op Fl N
+.Op Fl Nn
.Op Fl b Ar bus
.Op Fl d Ar device
.Op Fl f Ar function
diff --git a/usr.sbin/pcictl/pcictl.c b/usr.sbin/pcictl/pcictl.c
index f199d43b251..fbdd1c8564b 100644
--- a/usr.sbin/pcictl/pcictl.c
+++ b/usr.sbin/pcictl/pcictl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pcictl.c,v 1.19 2014/08/31 09:16:54 mrg Exp $ */
+/* $NetBSD: pcictl.c,v 1.20 2014/08/31 09:59:08 wiz Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@ static void cmd_dump(int, char *[]);
static const struct command commands[] = {
{ "list",
- "[-nN] [-b bus] [-d device] [-f function]",
+ "[-Nn] [-b bus] [-d device] [-f function]",
cmd_list,
O_RDONLY },
@@ -163,7 +163,7 @@ cmd_list(int argc, char *argv[])
bus = -1;
dev = func = -1;
- while ((ch = getopt(argc, argv, "nNb:d:f:")) != -1) {
+ while ((ch = getopt(argc, argv, "b:d:f:Nn")) != -1) {
switch (ch) {
case 'b':
bus = parse_bdf(optarg);