diff options
author | sos <sos@FreeBSD.org> | 2001-03-21 11:46:15 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2001-03-21 11:46:15 +0000 |
commit | d4ebcec25e7a8c35da00c6cd7ac6616cc53b7da6 (patch) | |
tree | e0ea2eb6a18c58d2e7abdef71936b3f57c96115f /sys | |
parent | 04511cf081c2cb002fdfdd28215bc99ede63610a (diff) | |
download | FreeBSD-src-d4ebcec25e7a8c35da00c6cd7ac6616cc53b7da6.zip FreeBSD-src-d4ebcec25e7a8c35da00c6cd7ac6616cc53b7da6.tar.gz |
Cleanup the diskerr messages a bit.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ata/ata-disk.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c index c8e3936..b3b2b3a 100644 --- a/sys/dev/ata/ata-disk.c +++ b/sys/dev/ata/ata-disk.c @@ -610,7 +610,7 @@ ad_interrupt(struct ad_request *request) /* do we have a corrected soft error ? */ if (adp->controller->status & ATA_S_CORR) - diskerr(request->bp, "soft (ECC corrected)", + diskerr(request->bp, "soft error (ECC corrected)", request->blockaddr + (request->donecount / DEV_BSIZE), &adp->disk.d_label); @@ -619,7 +619,8 @@ ad_interrupt(struct ad_request *request) (request->flags & ADR_F_DMA_USED && dma_stat & ATA_BMSTAT_ERROR)) { adp->controller->error = ATA_INB(adp->controller->r_io, ATA_ERROR); diskerr(request->bp, - (adp->controller->error & ATA_E_ICRC) ? "UDMA ICRC" : "hard", + (adp->controller->error & ATA_E_ICRC) ? + "UDMA ICRC error" : "hard error", request->blockaddr + (request->donecount / DEV_BSIZE), &adp->disk.d_label); |