diff options
| author | Matthew N. Dodd <mdodd@FreeBSD.org> | 1999-07-29 01:03:04 +0000 |
|---|---|---|
| committer | Matthew N. Dodd <mdodd@FreeBSD.org> | 1999-07-29 01:03:04 +0000 |
| commit | 15317dd875420f6e8953f95fa7de214465187dda (patch) | |
| tree | 4895cb91c66163742479e4442fcd330fed36fc9b /sys/dev/fdc | |
| parent | 7558f6aad9132f231a62b6bf2bb57f082dc0a57d (diff) | |
Notes
Diffstat (limited to 'sys/dev/fdc')
| -rw-r--r-- | sys/dev/fdc/fdc.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index 597d2daf4543..eaa5b0f58f79 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -47,7 +47,7 @@ * SUCH DAMAGE. * * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 - * $Id: fd.c,v 1.148 1999/07/04 14:58:32 phk Exp $ + * $Id: fd.c,v 1.149 1999/07/21 12:19:44 joerg Exp $ * */ @@ -757,11 +757,16 @@ fdc_attach(device_t dev) return (bus_generic_attach(dev)); } -static void +static int fdc_print_child(device_t me, device_t child) { - printf(" at %s%d drive %d", device_get_name(me), device_get_unit(me), + int retval = 0; + + retval += bus_print_child_header(me, child); + retval += printf(" on %s drive %d\n", device_get_nameunit(me), *(int *)device_get_ivars(child)); + + return (retval); } static int |
