diff options
author | ps <ps@FreeBSD.org> | 2005-07-29 01:53:45 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2005-07-29 01:53:45 +0000 |
commit | 507be1e3f4854f7dd928fe27d0bcfc12226f92d8 (patch) | |
tree | 2950416cb65c066b789a2570fa173ed1972ba82e /sys/dev/amr/amr.c | |
parent | f7414e11198f15bf1a59d12db82e522738fa37a5 (diff) | |
download | FreeBSD-src-507be1e3f4854f7dd928fe27d0bcfc12226f92d8.zip FreeBSD-src-507be1e3f4854f7dd928fe27d0bcfc12226f92d8.tar.gz |
Print the actual disk device we failed to complete i/o on.
Diffstat (limited to 'sys/dev/amr/amr.c')
-rw-r--r-- | sys/dev/amr/amr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/amr/amr.c b/sys/dev/amr/amr.c index a3bd999..0f9c4e3 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); |