From 6a46a4250e2b6169c6d41e2ee07b22e9e77d320f Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 17 Feb 2009 22:57:37 -0500 Subject: [PATCH] Fix typo causing atapi drive type misreport. All atapi drives were reported as "Device" instead of "CD-Rom/DVD-Rom". --- src/ata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ata.c b/src/ata.c index 5eefd32..adf3929 100644 --- a/src/ata.c +++ b/src/ata.c @@ -679,7 +679,7 @@ init_drive_atapi(int driveid) u8 slave = driveid % 2; printf("ata%d-%d: %s ATAPI-%d %s\n", channel, slave , ATA.devices[driveid].model, ATA.devices[driveid].version - , (ATA.devices[driveid].type == ATA_DEVICE_CDROM + , (ATA.devices[driveid].device == ATA_DEVICE_CDROM ? "CD-Rom/DVD-Rom" : "Device")); return 0; -- 2.39.5