diff options
author | imp <imp@FreeBSD.org> | 2001-09-09 17:28:02 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2001-09-09 17:28:02 +0000 |
commit | efea72f8e30b779213f12f337eb2df7e8a6afd24 (patch) | |
tree | 13d87a8fb9e7273fec9eac9c42728a83f74e1747 /sys/pccard/pccard_nbk.c | |
parent | 3e0a4f6409eefa7b4019be788c50abc02a973e2a (diff) | |
download | FreeBSD-src-efea72f8e30b779213f12f337eb2df7e8a6afd24.zip FreeBSD-src-efea72f8e30b779213f12f337eb2df7e8a6afd24.tar.gz |
If flags were specified for the device, print them in the probe
message. Some scsi devices have rather elaberate flags, and it is
hard to know which ones were specified in pccard.conf when debug
information only includes the dmesg.
Diffstat (limited to 'sys/pccard/pccard_nbk.c')
-rw-r--r-- | sys/pccard/pccard_nbk.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/pccard/pccard_nbk.c b/sys/pccard/pccard_nbk.c index 982455e..1f64755 100644 --- a/sys/pccard/pccard_nbk.c +++ b/sys/pccard/pccard_nbk.c @@ -158,7 +158,8 @@ pccard_print_child(device_t dev, device_t child) { struct pccard_devinfo *devi = PCCARD_DEVINFO(child); struct resource_list *rl = &devi->resources; - int retval = 0; + int retval = 0; + int flags = device_get_flags(child); retval += bus_print_child_header(dev, child); retval += printf(" at"); @@ -172,6 +173,8 @@ pccard_print_child(device_t dev, device_t child) "%ld"); pccard_print_resources(rl, "drq", SYS_RES_DRQ, PCCARD_NDRQ, "%ld"); + if (flags != 0) + retval += printf(" flags 0x%x", flags); retval += printf(" slot %d", devi->slt->slotnum); } |