aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBorislav Petkov <bbpetkov@yahoo.de>2006-06-27 08:51:25 -0400
committerJeff Garzik <jeff@garzik.org>2006-07-05 22:17:47 -0400
commit5afc81427f79193ed55edd7184ba2b6ce119a649 (patch)
treee22c3bead099662990fdb467e6ce5e589770622f
parentd2298dca9a2ec8a8ff23e251d8aaab00e9d229f9 (diff)
[PATCH] libata-core.c: restore configuration boot messages in ata_dev_configure(), v2
This one looks better, IMHO. This restores the default libata configuration messages printed during booting. Signed-off-by: <petkov@math.uni-muenster.de> Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r--drivers/scsi/libata-core.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index fa65b990f8b0..386e5f21e191 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -1417,7 +1417,7 @@ int ata_dev_configure(struct ata_device *dev, int print_info)
1417 ata_dev_config_ncq(dev, ncq_desc, sizeof(ncq_desc)); 1417 ata_dev_config_ncq(dev, ncq_desc, sizeof(ncq_desc));
1418 1418
1419 /* print device info to dmesg */ 1419 /* print device info to dmesg */
1420 if (ata_msg_info(ap)) 1420 if (ata_msg_drv(ap) && print_info)
1421 ata_dev_printk(dev, KERN_INFO, "ATA-%d, " 1421 ata_dev_printk(dev, KERN_INFO, "ATA-%d, "
1422 "max %s, %Lu sectors: %s %s\n", 1422 "max %s, %Lu sectors: %s %s\n",
1423 ata_id_major_version(id), 1423 ata_id_major_version(id),
@@ -1440,7 +1440,7 @@ int ata_dev_configure(struct ata_device *dev, int print_info)
1440 } 1440 }
1441 1441
1442 /* print device info to dmesg */ 1442 /* print device info to dmesg */
1443 if (ata_msg_info(ap)) 1443 if (ata_msg_drv(ap) && print_info)
1444 ata_dev_printk(dev, KERN_INFO, "ATA-%d, " 1444 ata_dev_printk(dev, KERN_INFO, "ATA-%d, "
1445 "max %s, %Lu sectors: CHS %u/%u/%u\n", 1445 "max %s, %Lu sectors: CHS %u/%u/%u\n",
1446 ata_id_major_version(id), 1446 ata_id_major_version(id),
@@ -1452,7 +1452,7 @@ int ata_dev_configure(struct ata_device *dev, int print_info)
1452 1452
1453 if (dev->id[59] & 0x100) { 1453 if (dev->id[59] & 0x100) {
1454 dev->multi_count = dev->id[59] & 0xff; 1454 dev->multi_count = dev->id[59] & 0xff;
1455 if (ata_msg_info(ap)) 1455 if (ata_msg_drv(ap) && print_info)
1456 ata_dev_printk(dev, KERN_INFO, 1456 ata_dev_printk(dev, KERN_INFO,
1457 "ata%u: dev %u multi count %u\n", 1457 "ata%u: dev %u multi count %u\n",
1458 ap->id, dev->devno, dev->multi_count); 1458 ap->id, dev->devno, dev->multi_count);
@@ -1481,7 +1481,7 @@ int ata_dev_configure(struct ata_device *dev, int print_info)
1481 } 1481 }
1482 1482
1483 /* print device info to dmesg */ 1483 /* print device info to dmesg */
1484 if (ata_msg_info(ap)) 1484 if (ata_msg_drv(ap) && print_info)
1485 ata_dev_printk(dev, KERN_INFO, "ATAPI, max %s%s\n", 1485 ata_dev_printk(dev, KERN_INFO, "ATAPI, max %s%s\n",
1486 ata_mode_string(xfer_mask), 1486 ata_mode_string(xfer_mask),
1487 cdb_intr_string); 1487 cdb_intr_string);
@@ -1491,7 +1491,7 @@ int ata_dev_configure(struct ata_device *dev, int print_info)
1491 1491
1492 /* limit bridge transfers to udma5, 200 sectors */ 1492 /* limit bridge transfers to udma5, 200 sectors */
1493 if (ata_dev_knobble(dev)) { 1493 if (ata_dev_knobble(dev)) {
1494 if (ata_msg_info(ap)) 1494 if (ata_msg_drv(ap) && print_info)
1495 ata_dev_printk(dev, KERN_INFO, 1495 ata_dev_printk(dev, KERN_INFO,
1496 "applying bridge limits\n"); 1496 "applying bridge limits\n");
1497 dev->udma_mask &= ATA_UDMA5; 1497 dev->udma_mask &= ATA_UDMA5;