Skip to content

Commit

Permalink
ide: fix ide_find_dma_mode() to print human-readable info
Browse files Browse the repository at this point in the history
Problem reported by Mikael.

Cc: Mikael Pettersson <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
  • Loading branch information
bzolnier committed Nov 5, 2007
1 parent 02ac246 commit d34887d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/ide/ide-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,8 @@ u8 ide_find_dma_mode(ide_drive_t *drive, u8 req_mode)
mode = XFER_MW_DMA_1;
}

printk(KERN_DEBUG "%s: selected mode 0x%x\n", drive->name, mode);
printk(KERN_DEBUG "%s: %s mode selected\n", drive->name,
mode ? ide_xfer_verbose(mode) : "no DMA");

return min(mode, req_mode);
}
Expand Down

0 comments on commit d34887d

Please sign in to comment.