ahci: use dev_info() instead of printk()
Subsystems (2)
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
@@ -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
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
@@ -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
'Tejun Heo'
AppliedRe: [PATCH V2 2/2] ahci_platform: use dev_info() instead of printk()
Quoted 5 lines · Jingoo Han
Change "raw"
printk()call todev_info()to provide a better message to userspace so it can properly identify the device and not just have to guess.Signed-off-by Jingoo Han <[email protected]>
Applied to libata/for-3.13.
Thanks.
Signature · 1 line
tejun
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 todev_info()to provide a better message to userspace so it can properly identify the device and not just have to guess.Signed-off-by Jingoo Han <[email protected]>Applied to libata/for-3.13.
Strike that. Applied to libata/for-3.12-fixes.
Thanks.
Signature · 1 line
tejun