Print flags in the nexus for child devices.

This commit is contained in:
Nate Lawson 2004-10-14 22:36:47 +00:00
parent e5979322ba
commit 8f528832e5
3 changed files with 6 additions and 0 deletions

View File

@ -259,6 +259,8 @@ nexus_print_child(device_t bus, device_t child)
retval += bus_print_child_header(bus, child);
retval += nexus_print_all_resources(child);
if (device_get_flags(child))
retval += printf(" flags %#x", device_get_flags(child));
retval += printf(" on motherboard\n"); /* XXX "motherboard", ick */
return (retval);

View File

@ -266,6 +266,8 @@ nexus_print_child(device_t bus, device_t child)
retval += bus_print_child_header(bus, child);
retval += nexus_print_all_resources(child);
if (device_get_flags(child))
retval += printf(" flags %#x", device_get_flags(child));
retval += printf(" on motherboard\n"); /* XXX "motherboard", ick */
return (retval);

View File

@ -286,6 +286,8 @@ nexus_print_child(device_t bus, device_t child)
retval += nexus_print_all_resources(child);
if (ndev->nx_pcibus != -1)
retval += printf(" pcibus %d", ndev->nx_pcibus);
if (device_get_flags(child))
retval += printf(" flags %#x", device_get_flags(child));
retval += printf(" on motherboard\n"); /* XXX "motherboard", ick */
return (retval);