From 76051d5c6d2a95d43c97df2a3d3cfbc241d4dafb Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 9 Sep 2001 17:28:02 +0000 Subject: [PATCH] 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. --- sys/pccard/pccard_nbk.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/pccard/pccard_nbk.c b/sys/pccard/pccard_nbk.c index 982455e404c..1f647559d33 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); }