diff options
author | Joe Perches <joe@perches.com> | 2011-04-15 18:51:58 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2011-07-23 17:57:36 -0400 |
commit | a44fec1fce5d5d14cc3ac4545b8da346394de666 (patch) | |
tree | fa3d16a4c8f1a6a7e9af867f16f7201a5b5442f9 /drivers/ata/sata_nv.c | |
parent | 02f8c6aee8df3cdc935e9bdd4f2d020306035dbe (diff) |
ata: Convert dev_printk(KERN_<LEVEL> to dev_<level>(
Saves a bit of text as the call takes fewer args.
Coalesce a few formats.
Convert a few bare printks to pr_cont.
$ size drivers/ata/built-in.o*
text data bss dec hex filename
558429 73893 117864 750186 b726a drivers/ata/built-in.o.allyesconfig.new
559574 73893 117888 751355 b76fb drivers/ata/built-in.o.allyesconfig.old
149567 14689 4220 168476 2921c drivers/ata/built-in.o.defconfig.new
149851 14689 4220 168760 29338 drivers/ata/built-in.o.defconfig.old
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/ata/sata_nv.c')
-rw-r--r-- | drivers/ata/sata_nv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/sata_nv.c b/drivers/ata/sata_nv.c index f173ef3bfc10..f215e10c11cf 100644 --- a/drivers/ata/sata_nv.c +++ b/drivers/ata/sata_nv.c | |||
@@ -2382,10 +2382,10 @@ static int nv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
2382 | 2382 | ||
2383 | /* determine type and allocate host */ | 2383 | /* determine type and allocate host */ |
2384 | if (type == CK804 && adma_enabled) { | 2384 | if (type == CK804 && adma_enabled) { |
2385 | dev_printk(KERN_NOTICE, &pdev->dev, "Using ADMA mode\n"); | 2385 | dev_notice(&pdev->dev, "Using ADMA mode\n"); |
2386 | type = ADMA; | 2386 | type = ADMA; |
2387 | } else if (type == MCP5x && swncq_enabled) { | 2387 | } else if (type == MCP5x && swncq_enabled) { |
2388 | dev_printk(KERN_NOTICE, &pdev->dev, "Using SWNCQ mode\n"); | 2388 | dev_notice(&pdev->dev, "Using SWNCQ mode\n"); |
2389 | type = SWNCQ; | 2389 | type = SWNCQ; |
2390 | } | 2390 | } |
2391 | 2391 | ||
@@ -2429,7 +2429,7 @@ static int nv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
2429 | nv_swncq_host_init(host); | 2429 | nv_swncq_host_init(host); |
2430 | 2430 | ||
2431 | if (msi_enabled) { | 2431 | if (msi_enabled) { |
2432 | dev_printk(KERN_NOTICE, &pdev->dev, "Using MSI\n"); | 2432 | dev_notice(&pdev->dev, "Using MSI\n"); |
2433 | pci_enable_msi(pdev); | 2433 | pci_enable_msi(pdev); |
2434 | } | 2434 | } |
2435 | 2435 | ||