diff options
author | Joe Perches <joe@perches.com> | 2010-07-26 17:39:58 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-27 15:14:13 -0400 |
commit | c96c31e499b70964cfc88744046c998bb710e4b8 (patch) | |
tree | 0157102fbc952e3646690f3491199607669eed69 /drivers/net/wireless/iwlwifi | |
parent | e1db74fcc3d95c8a051ec457241b5aa65a01a603 (diff) |
drivers/net/wireless: Use wiphy_<level>
Standardize the logging macros used.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 11 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 13 |
3 files changed, 14 insertions, 12 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 9a78189c64f..35337b1e7ca 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -27,6 +27,8 @@ | |||
27 | * | 27 | * |
28 | *****************************************************************************/ | 28 | *****************************************************************************/ |
29 | 29 | ||
30 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
31 | |||
30 | #include <linux/kernel.h> | 32 | #include <linux/kernel.h> |
31 | #include <linux/module.h> | 33 | #include <linux/module.h> |
32 | #include <linux/init.h> | 34 | #include <linux/init.h> |
@@ -4417,19 +4419,18 @@ static int __init iwl_init(void) | |||
4417 | { | 4419 | { |
4418 | 4420 | ||
4419 | int ret; | 4421 | int ret; |
4420 | printk(KERN_INFO DRV_NAME ": " DRV_DESCRIPTION ", " DRV_VERSION "\n"); | 4422 | pr_info(DRV_DESCRIPTION ", " DRV_VERSION "\n"); |
4421 | printk(KERN_INFO DRV_NAME ": " DRV_COPYRIGHT "\n"); | 4423 | pr_info(DRV_COPYRIGHT "\n"); |
4422 | 4424 | ||
4423 | ret = iwlagn_rate_control_register(); | 4425 | ret = iwlagn_rate_control_register(); |
4424 | if (ret) { | 4426 | if (ret) { |
4425 | printk(KERN_ERR DRV_NAME | 4427 | pr_err("Unable to register rate control algorithm: %d\n", ret); |
4426 | "Unable to register rate control algorithm: %d\n", ret); | ||
4427 | return ret; | 4428 | return ret; |
4428 | } | 4429 | } |
4429 | 4430 | ||
4430 | ret = pci_register_driver(&iwl_driver); | 4431 | ret = pci_register_driver(&iwl_driver); |
4431 | if (ret) { | 4432 | if (ret) { |
4432 | printk(KERN_ERR DRV_NAME "Unable to initialize PCI module\n"); | 4433 | pr_err("Unable to initialize PCI module\n"); |
4433 | goto error_register; | 4434 | goto error_register; |
4434 | } | 4435 | } |
4435 | 4436 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index cb2d48a84fb..8024d44ce4b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -170,7 +170,7 @@ struct ieee80211_hw *iwl_alloc_all(struct iwl_cfg *cfg, | |||
170 | struct ieee80211_hw *hw = | 170 | struct ieee80211_hw *hw = |
171 | ieee80211_alloc_hw(sizeof(struct iwl_priv), hw_ops); | 171 | ieee80211_alloc_hw(sizeof(struct iwl_priv), hw_ops); |
172 | if (hw == NULL) { | 172 | if (hw == NULL) { |
173 | printk(KERN_ERR "%s: Can not allocate network device\n", | 173 | pr_err("%s: Can not allocate network device\n", |
174 | cfg->name); | 174 | cfg->name); |
175 | goto out; | 175 | goto out; |
176 | } | 176 | } |
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 45a68457504..d24eb47d370 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -27,6 +27,8 @@ | |||
27 | * | 27 | * |
28 | *****************************************************************************/ | 28 | *****************************************************************************/ |
29 | 29 | ||
30 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
31 | |||
30 | #include <linux/kernel.h> | 32 | #include <linux/kernel.h> |
31 | #include <linux/module.h> | 33 | #include <linux/module.h> |
32 | #include <linux/init.h> | 34 | #include <linux/init.h> |
@@ -3933,7 +3935,7 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e | |||
3933 | * space for this driver's private structure */ | 3935 | * space for this driver's private structure */ |
3934 | hw = iwl_alloc_all(cfg, &iwl3945_hw_ops); | 3936 | hw = iwl_alloc_all(cfg, &iwl3945_hw_ops); |
3935 | if (hw == NULL) { | 3937 | if (hw == NULL) { |
3936 | printk(KERN_ERR DRV_NAME "Can not allocate network device\n"); | 3938 | pr_err("Can not allocate network device\n"); |
3937 | err = -ENOMEM; | 3939 | err = -ENOMEM; |
3938 | goto out; | 3940 | goto out; |
3939 | } | 3941 | } |
@@ -4225,19 +4227,18 @@ static int __init iwl3945_init(void) | |||
4225 | { | 4227 | { |
4226 | 4228 | ||
4227 | int ret; | 4229 | int ret; |
4228 | printk(KERN_INFO DRV_NAME ": " DRV_DESCRIPTION ", " DRV_VERSION "\n"); | 4230 | pr_info(DRV_DESCRIPTION ", " DRV_VERSION "\n"); |
4229 | printk(KERN_INFO DRV_NAME ": " DRV_COPYRIGHT "\n"); | 4231 | pr_info(DRV_COPYRIGHT "\n"); |
4230 | 4232 | ||
4231 | ret = iwl3945_rate_control_register(); | 4233 | ret = iwl3945_rate_control_register(); |
4232 | if (ret) { | 4234 | if (ret) { |
4233 | printk(KERN_ERR DRV_NAME | 4235 | pr_err("Unable to register rate control algorithm: %d\n", ret); |
4234 | "Unable to register rate control algorithm: %d\n", ret); | ||
4235 | return ret; | 4236 | return ret; |
4236 | } | 4237 | } |
4237 | 4238 | ||
4238 | ret = pci_register_driver(&iwl3945_driver); | 4239 | ret = pci_register_driver(&iwl3945_driver); |
4239 | if (ret) { | 4240 | if (ret) { |
4240 | printk(KERN_ERR DRV_NAME "Unable to initialize PCI module\n"); | 4241 | pr_err("Unable to initialize PCI module\n"); |
4241 | goto error_register; | 4242 | goto error_register; |
4242 | } | 4243 | } |
4243 | 4244 | ||