Improve device listing.

This commit is contained in:
Hidetoshi Shimokawa 2003-02-09 07:26:48 +00:00
parent 864d7e72b8
commit e6aaafcd79
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110578
2 changed files with 6 additions and 4 deletions

View File

@ -47,6 +47,9 @@ The
utility is designed to provide a way for users to access and control the
.Fx
FireWire subsystem.
Without options,
.Nm
will output a list of devices those are/were connected to the bus.
.Pp
.Bl -tag -width indent
.It Fl r

View File

@ -95,11 +95,11 @@ list_dev(int fd)
data = get_dev(fd);
printf("%d devices (info_len=%d)\n", data->n, data->info_len);
printf("node EUI64 status\n");
for (i = 0; i < data->info_len; i++) {
devinfo = &data->dev[i];
printf("%d node %d eui:%08x%08x status:%d\n",
i,
devinfo->dst,
printf("%4d %08x%08x %6d\n",
(devinfo->status || i == 0) ? devinfo->dst : -1,
devinfo->eui.hi,
devinfo->eui.lo,
devinfo->status
@ -376,7 +376,6 @@ main(int argc, char **argv)
if (argc < 2) {
list_dev(fd);
usage();
}
while ((ch = getopt(argc, argv, "g:b:rtc:d:l:R:S:")) != -1)