Skip to contentSkip to conversation

ahci: use dev_info() instead of printk()

PATCH Applied Jingoo Han 2 participants 4 messages Oct 5, 2013 – Oct 7, 2013

Subsystems (2)
lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH v2 1/2 ahci: use dev_info() instead of printk()

Change "raw" printk() call to dev_info() to provide a better message to userspace so it can properly identify the device and not just have to guess.

---
Tested on Exynos5440.

 drivers/ata/ahci.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/ahci.c +1 -1
index 9d715ae..8e28f92 100644
@@ -1343,7 +1343,7 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 	if (!(hpriv->cap & HOST_CAP_SSS) || ahci_ignore_sss)
 		host->flags |= ATA_HOST_PARALLEL_SCAN;
 	else
-		printk(KERN_INFO "ahci: SSS flag set, parallel bus scan disabled\n");
+		dev_info(&pdev->dev, "SSS flag set, parallel bus scan disabled\n");
 
 	if (pi.flags & ATA_FLAG_EM)
 		ahci_reset_em(host);
Signature · 1 line
1.7.10.4
author
#1 lore raw

PATCH v2 2/2 ahci_platform: use dev_info() instead of printk()

Change "raw" printk() call to dev_info() to provide a better message to userspace so it can properly identify the device and not just have to guess.

---
Tested on Exynos5440.

 drivers/ata/ahci_platform.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/ahci_platform.c +1 -1
index 2daaee0..7d3b853 100644
@@ -184,7 +184,7 @@ static int ahci_probe(struct platform_device *pdev)
 	if (!(hpriv->cap & HOST_CAP_SSS) || ahci_ignore_sss)
 		host->flags |= ATA_HOST_PARALLEL_SCAN;
 	else
-		printk(KERN_INFO "ahci: SSS flag set, parallel bus scan disabled\n");
+		dev_info(dev, "SSS flag set, parallel bus scan disabled\n");
 
 	if (pi.flags & ATA_FLAG_EM)
 		ahci_reset_em(host);
Signature · 1 line
1.7.10.4
Applied
#2 lore raw

Re: [PATCH V2 2/2] ahci_platform: use dev_info() instead of printk()

Quoted 5 lines · Jingoo Han

Change "raw" printk() call to dev_info() to provide a better message to userspace so it can properly identify the device and not just have to guess.

Applied to libata/for-3.13.

Thanks.

Signature · 1 line
tejun
#3 lore raw

Re: [PATCH V2 2/2] ahci_platform: use dev_info() instead of printk()

Quoted 8 lines · Tejun Heo
Quoted 5 lines · Jingoo Han

Change "raw" printk() call to dev_info() to provide a better message to userspace so it can properly identify the device and not just have to guess.

Applied to libata/for-3.13.

Strike that. Applied to libata/for-3.12-fixes.

Thanks.

Signature · 1 line
tejun