mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
ide: fix ide_find_dma_mode() to print human-readable info
Problem reported by Mikael. Cc: Mikael Pettersson <mikpe@it.uu.se> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
02ac2460ff
commit
d34887da6b
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue