Linux-PM Archive on
 help / color / Atom feed
* [PATCH] thermal: intel: int3403: replace printk(KERN_WARN...) with pr_warn(...)
@ 2019-08-23  1:31 Rishi Gupta
  0 siblings, 0 replies; only message in thread
From: Rishi Gupta @ 2019-08-23  1:31 UTC (permalink / raw)
  To: rui.zhang
  Cc: edubezval, daniel.lezcano, alexios.zavras, gregkh, amit.kucheria,
	allison, tglx, linux-pm, linux-kernel, Rishi Gupta

Direct invocation of printk() is not preferred to emit logs.
This commit replaces printk(KERN_WARNING) with corresponding
pr_warn() function call.

Signed-off-by: Rishi Gupta <>
 drivers/thermal/intel/int340x_thermal/int3403_thermal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/thermal/intel/int340x_thermal/int3403_thermal.c b/drivers/thermal/intel/int340x_thermal/int3403_thermal.c
index f5749d4..a7bbd85 100644
--- a/drivers/thermal/intel/int340x_thermal/int3403_thermal.c
+++ b/drivers/thermal/intel/int340x_thermal/int3403_thermal.c
@@ -181,7 +181,7 @@ static int int3403_cdev_add(struct int3403_priv *priv)
 	p = buf.pointer;
 	if (!p || (p->type != ACPI_TYPE_PACKAGE)) {
-		printk(KERN_WARNING "Invalid PPSS data\n");
+		pr_warn("Invalid PPSS data\n");
 		return -EFAULT;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-23  1:31 [PATCH] thermal: intel: int3403: replace printk(KERN_WARN...) with pr_warn(...) Rishi Gupta

Linux-PM Archive on

Archives are clonable:
	git clone --mirror linux-pm/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-pm linux-pm/ \
	public-inbox-index linux-pm

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox