projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02ac246
)
ide: fix ide_find_dma_mode() to print human-readable info
author
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Mon, 5 Nov 2007 20:42:27 +0000
(21:42 +0100)
committer
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Mon, 5 Nov 2007 20:42:27 +0000
(21:42 +0100)
Problem reported by Mikael.
Cc: Mikael Pettersson <mikpe@it.uu.se>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-dma.c
patch
|
blob
|
history
diff --git
a/drivers/ide/ide-dma.c
b/drivers/ide/ide-dma.c
index 428f7a8a00b628715d86d7f9c27007db33952d3d..202d56a8ead20feb8ffb7a57aadf36f43ca75c6a 100644
(file)
--- a/
drivers/ide/ide-dma.c
+++ b/
drivers/ide/ide-dma.c
@@
-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);
}