* [PATCH -v3 8/8] PCI: Replace printks with appropriate pr_*()
@ 2013-06-04 10:59 Yijing Wang
2013-06-04 23:14 ` Bjorn Helgaas
2013-06-05 2:32 ` Yijing Wang
0 siblings, 2 replies; 3+ messages in thread
From: Yijing Wang @ 2013-06-04 10:59 UTC (permalink / raw)
To: linux-ia64
Replace deprecated printk(KERN_ERR...) with pr_err() in arch/ia64/pci/pci.c
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
---
arch/ia64/pci/pci.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c
index f2139b4..716423f 100644
--- a/arch/ia64/pci/pci.c
+++ b/arch/ia64/pci/pci.c
@@ -157,7 +157,7 @@ new_space (u64 phys_base, int sparse)
return i;
if (num_io_spaces = MAX_IO_SPACES) {
- printk(KERN_ERR "PCI: Too many IO port spaces "
+ pr_err("PCI: Too many IO port spaces "
"(MAX_IO_SPACES=%lu)\n", MAX_IO_SPACES);
return ~0;
}
@@ -181,7 +181,7 @@ static u64 add_io_space(struct pci_root_info *info,
len = strlen(info->name) + 32;
iospace = kzalloc(sizeof(*iospace) + len, GFP_KERNEL);
if (!iospace) {
- printk(KERN_ERR "PCI: No memory for %s I/O port space\n",
+ pr_err("PCI: No memory for %s I/O port space\n",
info->name);
goto out;
}
@@ -444,7 +444,7 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)
info = kzalloc(sizeof(*info), GFP_KERNEL);
if (!info) {
- printk(KERN_WARNING "pci_bus %04x:%02x: "
+ pr_warn("pci_bus %04x:%02x: "
"ignored (out of memory)\n", domain, busnum);
kfree(controller);
return NULL;
@@ -779,7 +779,7 @@ static void __init set_pci_dfl_cacheline_size(void)
status = ia64_pal_cache_summary(&levels, &unique_caches);
if (status != 0) {
- printk(KERN_ERR "%s: ia64_pal_cache_summary() failed "
+ pr_err("%s: ia64_pal_cache_summary() failed "
"(status=%ld)\n", __func__, status);
return;
}
@@ -787,7 +787,7 @@ static void __init set_pci_dfl_cacheline_size(void)
status = ia64_pal_cache_config_info(levels - 1,
/* cache_type (data_or_unified)= */ 2, &cci);
if (status != 0) {
- printk(KERN_ERR "%s: ia64_pal_cache_config_info() failed "
+ pr_err("%s: ia64_pal_cache_config_info() failed "
"(status=%ld)\n", __func__, status);
return;
}
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH -v3 8/8] PCI: Replace printks with appropriate pr_*()
2013-06-04 10:59 [PATCH -v3 8/8] PCI: Replace printks with appropriate pr_*() Yijing Wang
@ 2013-06-04 23:14 ` Bjorn Helgaas
2013-06-05 2:32 ` Yijing Wang
1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Helgaas @ 2013-06-04 23:14 UTC (permalink / raw)
To: linux-ia64
On Tue, Jun 4, 2013 at 4:59 AM, Yijing Wang <wangyijing@huawei.com> wrote:
> Replace deprecated printk(KERN_ERR...) with pr_err() in arch/ia64/pci/pci.c
>
> Signed-off-by: Yijing Wang <wangyijing@huawei.com>
> ---
> arch/ia64/pci/pci.c | 10 +++++-----
> 1 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c
> index f2139b4..716423f 100644
> --- a/arch/ia64/pci/pci.c
> +++ b/arch/ia64/pci/pci.c
> @@ -157,7 +157,7 @@ new_space (u64 phys_base, int sparse)
> return i;
>
> if (num_io_spaces = MAX_IO_SPACES) {
> - printk(KERN_ERR "PCI: Too many IO port spaces "
> + pr_err("PCI: Too many IO port spaces "
> "(MAX_IO_SPACES=%lu)\n", MAX_IO_SPACES);
> return ~0;
> }
> @@ -181,7 +181,7 @@ static u64 add_io_space(struct pci_root_info *info,
> len = strlen(info->name) + 32;
> iospace = kzalloc(sizeof(*iospace) + len, GFP_KERNEL);
> if (!iospace) {
> - printk(KERN_ERR "PCI: No memory for %s I/O port space\n",
> + pr_err("PCI: No memory for %s I/O port space\n",
Use dev_err() here, since you have the struct acpi_device pointer
(info->bridge).
> info->name);
> goto out;
> }
> @@ -444,7 +444,7 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)
>
> info = kzalloc(sizeof(*info), GFP_KERNEL);
> if (!info) {
> - printk(KERN_WARNING "pci_bus %04x:%02x: "
> + pr_warn("pci_bus %04x:%02x: "
> "ignored (out of memory)\n", domain, busnum);
And here.
> kfree(controller);
> return NULL;
> @@ -779,7 +779,7 @@ static void __init set_pci_dfl_cacheline_size(void)
>
> status = ia64_pal_cache_summary(&levels, &unique_caches);
> if (status != 0) {
> - printk(KERN_ERR "%s: ia64_pal_cache_summary() failed "
> + pr_err("%s: ia64_pal_cache_summary() failed "
> "(status=%ld)\n", __func__, status);
> return;
> }
> @@ -787,7 +787,7 @@ static void __init set_pci_dfl_cacheline_size(void)
> status = ia64_pal_cache_config_info(levels - 1,
> /* cache_type (data_or_unified)= */ 2, &cci);
> if (status != 0) {
> - printk(KERN_ERR "%s: ia64_pal_cache_config_info() failed "
> + pr_err("%s: ia64_pal_cache_config_info() failed "
> "(status=%ld)\n", __func__, status);
> return;
> }
> --
> 1.7.1
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -v3 8/8] PCI: Replace printks with appropriate pr_*()
2013-06-04 10:59 [PATCH -v3 8/8] PCI: Replace printks with appropriate pr_*() Yijing Wang
2013-06-04 23:14 ` Bjorn Helgaas
@ 2013-06-05 2:32 ` Yijing Wang
1 sibling, 0 replies; 3+ messages in thread
From: Yijing Wang @ 2013-06-05 2:32 UTC (permalink / raw)
To: linux-ia64
>> - printk(KERN_ERR "PCI: No memory for %s I/O port space\n",
>> + pr_err("PCI: No memory for %s I/O port space\n",
>
> Use dev_err() here, since you have the struct acpi_device pointer
> (info->bridge).
Sure, I will update it.
>
>> info->name);
>> goto out;
>> }
>> @@ -444,7 +444,7 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)
>>
>> info = kzalloc(sizeof(*info), GFP_KERNEL);
>> if (!info) {
>> - printk(KERN_WARNING "pci_bus %04x:%02x: "
>> + pr_warn("pci_bus %04x:%02x: "
>> "ignored (out of memory)\n", domain, busnum);
>
> And here.
will update too, thanks!
>
>> kfree(controller);
>> return NULL;
>> @@ -779,7 +779,7 @@ static void __init set_pci_dfl_cacheline_size(void)
>>
>> status = ia64_pal_cache_summary(&levels, &unique_caches);
>> if (status != 0) {
>> - printk(KERN_ERR "%s: ia64_pal_cache_summary() failed "
>> + pr_err("%s: ia64_pal_cache_summary() failed "
>> "(status=%ld)\n", __func__, status);
>> return;
>> }
>> @@ -787,7 +787,7 @@ static void __init set_pci_dfl_cacheline_size(void)
>> status = ia64_pal_cache_config_info(levels - 1,
>> /* cache_type (data_or_unified)= */ 2, &cci);
>> if (status != 0) {
>> - printk(KERN_ERR "%s: ia64_pal_cache_config_info() failed "
>> + pr_err("%s: ia64_pal_cache_config_info() failed "
>> "(status=%ld)\n", __func__, status);
>> return;
>> }
>> --
>> 1.7.1
>>
>>
>
> .
>
--
Thanks!
Yijing
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-05 2:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-04 10:59 [PATCH -v3 8/8] PCI: Replace printks with appropriate pr_*() Yijing Wang
2013-06-04 23:14 ` Bjorn Helgaas
2013-06-05 2:32 ` Yijing Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox