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/pcf/pcf.c | |
| parent | 7558f6aad9132f231a62b6bf2bb57f082dc0a57d (diff) | |
Notes
Diffstat (limited to 'sys/dev/pcf/pcf.c')
| -rw-r--r-- | sys/dev/pcf/pcf.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/dev/pcf/pcf.c b/sys/dev/pcf/pcf.c index 94d685be8f16..e5498b40b5fd 100644 --- a/sys/dev/pcf/pcf.c +++ b/sys/dev/pcf/pcf.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: pcf.c,v 1.8 1999/05/06 18:54:18 peter Exp $ + * $Id: pcf.c,v 1.9 1999/05/08 21:59:27 dfr Exp $ * */ #include <sys/param.h> @@ -103,7 +103,7 @@ struct isa_driver pcfdriver = { static int pcf_probe(device_t); static int pcf_attach(device_t); -static void pcf_print_child(device_t, device_t); +static int pcf_print_child(device_t, device_t); static int pcf_repeated_start(device_t, u_char, int); static int pcf_start(device_t, u_char, int); @@ -219,15 +219,17 @@ pcf_attach(device_t pcfdev) return (0); } -static void +static int pcf_print_child(device_t bus, device_t dev) { struct pcf_softc *pcf = (struct pcf_softc *)device_get_softc(bus); + int retval = 0; - printf(" on %s%d addr 0x%x", device_get_name(bus), - device_get_unit(bus), (int)pcf->pcf_addr); + retval += bus_print_child_header(bus, dev); + retval += printf(" on %s addr 0x%x\n", device_get_nameunit(bus), + (int)pcf->pcf_addr); - return; + return (retval); } /* |
