From 507be1e3f4854f7dd928fe27d0bcfc12226f92d8 Mon Sep 17 00:00:00 2001 From: ps Date: Fri, 29 Jul 2005 01:53:45 +0000 Subject: [PATCH] Print the actual disk device we failed to complete i/o on. --- sys/dev/amr/amr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/amr/amr.c b/sys/dev/amr/amr.c index a3bd999a947..0f9c4e360c1 100644 --- a/sys/dev/amr/amr.c +++ b/sys/dev/amr/amr.c @@ -878,13 +878,13 @@ amr_startio(struct amr_softc *sc) static void amr_completeio(struct amr_command *ac) { - struct amr_softc *sc = ac->ac_sc; + struct amrd_softc *sc = ac->ac_bio->bio_disk->d_drv1; if (ac->ac_status != AMR_STATUS_SUCCESS) { /* could be more verbose here? */ ac->ac_bio->bio_error = EIO; ac->ac_bio->bio_flags |= BIO_ERROR; - device_printf(sc->amr_dev, "I/O error - 0x%x\n", ac->ac_status); + device_printf(sc->amrd_dev, "I/O error - 0x%x\n", ac->ac_status); /* amr_printcommand(ac);*/ } amrd_intr(ac->ac_bio); -- 2.45.2