Skip to content

Commit

Permalink
sh: Use pr_warn instead of pr_warning
Browse files Browse the repository at this point in the history
As said in commit f2c2cbc ("powerpc: Use pr_warn instead of
pr_warning"), removing pr_warning so all logging messages use a
consistent <prefix>_warn style. Let's do it.

Link: http://lkml.kernel.org/r/[email protected]
To: [email protected]
Cc: Stephen Rothwell <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Cc: Rich Felker <[email protected]>
Signed-off-by: Kefeng Wang <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
  • Loading branch information
Kefeng Wang authored and pmladek committed Oct 18, 2019
1 parent 04ce8d3 commit 6d80f20
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion arch/sh/boards/mach-sdk7786/nmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static int __init nmi_mode_setup(char *str)
nmi_mode = NMI_MODE_ANY;
else {
nmi_mode = NMI_MODE_UNKNOWN;
pr_warning("Unknown NMI mode %s\n", str);
pr_warn("Unknown NMI mode %s\n", str);
}

printk("Set NMI mode to %d\n", nmi_mode);
Expand Down
2 changes: 1 addition & 1 deletion arch/sh/drivers/pci/fixups-sdk7786.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static int __init sdk7786_pci_init(void)

/* Warn about forced rerouting if slot#3 is occupied */
if ((data & PCIECR_PRST3) == 0) {
pr_warning("Unreachable card detected in slot#3\n");
pr_warn("Unreachable card detected in slot#3\n");
return -EBUSY;
}
} else
Expand Down
2 changes: 1 addition & 1 deletion arch/sh/kernel/io_trapped.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ int register_trapped_io(struct trapped_io *tiop)

return 0;
bad:
pr_warning("unable to install trapped io filter\n");
pr_warn("unable to install trapped io filter\n");
return -1;
}
EXPORT_SYMBOL_GPL(register_trapped_io);
Expand Down
2 changes: 1 addition & 1 deletion arch/sh/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ void __init setup_arch(char **cmdline_p)
/* processor boot mode configuration */
int generic_mode_pins(void)
{
pr_warning("generic_mode_pins(): missing mode pin configuration\n");
pr_warn("generic_mode_pins(): missing mode pin configuration\n");
return 0;
}

Expand Down
5 changes: 2 additions & 3 deletions arch/sh/mm/consistent.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ int __init platform_resource_setup_memory(struct platform_device *pdev,

r = pdev->resource + pdev->num_resources - 1;
if (r->flags) {
pr_warning("%s: unable to find empty space for resource\n",
name);
pr_warn("%s: unable to find empty space for resource\n", name);
return -EINVAL;
}

Expand All @@ -54,7 +53,7 @@ int __init platform_resource_setup_memory(struct platform_device *pdev,

buf = dma_alloc_coherent(&pdev->dev, memsize, &dma_handle, GFP_KERNEL);
if (!buf) {
pr_warning("%s: unable to allocate memory\n", name);
pr_warn("%s: unable to allocate memory\n", name);
return -ENOMEM;
}

Expand Down

0 comments on commit 6d80f20

Please sign in to comment.