aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-12-24 09:23:43 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-12-24 09:23:43 -0500
commitb481b23868928443931190c91e7c06e23913149d (patch)
tree48cc2ff57f488f1b42f49572e6ce4c75b0f83262 /drivers/ide
parent31a71191650dce1bb4a7de6147f1947795826cda (diff)
ide-cd: fix error messages in cdrom_write_intr()
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide-cd.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
index 30f27585a7d3..3d48a02caaee 100644
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -1805,8 +1805,9 @@ static ide_startstop_t cdrom_write_intr(ide_drive_t *drive)
1805 /* Check for errors. */ 1805 /* Check for errors. */
1806 if (dma) { 1806 if (dma) {
1807 info->dma = 0; 1807 info->dma = 0;
1808 if ((dma_error = HWIF(drive)->ide_dma_end(drive))) { 1808 dma_error = HWIF(drive)->ide_dma_end(drive);
1809 printk(KERN_ERR "ide-cd: write dma error\n"); 1809 if (dma_error) {
1810 printk(KERN_ERR "%s: DMA write error\n", drive->name);
1810 ide_dma_off(drive); 1811 ide_dma_off(drive);
1811 } 1812 }
1812 } 1813 }
@@ -1839,8 +1840,9 @@ static ide_startstop_t cdrom_write_intr(ide_drive_t *drive)
1839 */ 1840 */
1840 uptodate = 1; 1841 uptodate = 1;
1841 if (rq->current_nr_sectors > 0) { 1842 if (rq->current_nr_sectors > 0) {
1842 printk(KERN_ERR "%s: write_intr: data underrun (%d blocks)\n", 1843 printk(KERN_ERR "%s: %s: data underrun (%d blocks)\n",
1843 drive->name, rq->current_nr_sectors); 1844 drive->name, __FUNCTION__,
1845 rq->current_nr_sectors);
1844 uptodate = 0; 1846 uptodate = 0;
1845 } 1847 }
1846 cdrom_end_request(drive, uptodate); 1848 cdrom_end_request(drive, uptodate);
@@ -1860,7 +1862,8 @@ static ide_startstop_t cdrom_write_intr(ide_drive_t *drive)
1860 int this_transfer; 1862 int this_transfer;
1861 1863
1862 if (!rq->current_nr_sectors) { 1864 if (!rq->current_nr_sectors) {
1863 printk(KERN_ERR "ide-cd: write_intr: oops\n"); 1865 printk(KERN_ERR "%s: %s: confused, missing data\n",
1866 drive->name, __FUNCTION__);
1864 break; 1867 break;
1865 } 1868 }
1866 1869