linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm: omap1: replace printk() with pr_err macro
@ 2023-05-18 10:33 Prathu Baronia
  2023-05-19 17:56 ` Kevin Hilman
  2023-05-31  5:32 ` Tony Lindgren
  0 siblings, 2 replies; 3+ messages in thread
From: Prathu Baronia @ 2023-05-18 10:33 UTC (permalink / raw)
  To: Kevin Hilman, Aaro Koskinen, Janusz Krzysztofik, Tony Lindgren,
	Russell King, linux-omap, linux-arm-kernel, linux-kernel
  Cc: Prathu Baronia

Use pr_err() macro instead of printk(KERN_ERR "...").

Signed-off-by: Prathu Baronia <quic_pbaronia@quicinc.com>
---
 arch/arm/mach-omap1/pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-omap1/pm.c b/arch/arm/mach-omap1/pm.c
index 9761d8404949..6a5815aa05e6 100644
--- a/arch/arm/mach-omap1/pm.c
+++ b/arch/arm/mach-omap1/pm.c
@@ -632,7 +632,7 @@ static int __init omap_pm_init(void)
 
 	error = sysfs_create_file(power_kobj, &sleep_while_idle_attr.attr);
 	if (error)
-		printk(KERN_ERR "sysfs_create_file failed: %d\n", error);
+		pr_err("sysfs_create_file failed: %d\n", error);
 
 	if (cpu_is_omap16xx()) {
 		/* configure LOW_PWR pin */
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-31  5:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-18 10:33 [PATCH] arm: omap1: replace printk() with pr_err macro Prathu Baronia
2023-05-19 17:56 ` Kevin Hilman
2023-05-31  5:32 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).