linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] PM / Domains: Fix a warning message
@ 2016-11-10 12:52 Dan Carpenter
  2016-11-10 16:33 ` Pavel Machek
  2016-11-10 19:25 ` Ulf Hansson
  0 siblings, 2 replies; 4+ messages in thread
From: Dan Carpenter @ 2016-11-10 12:52 UTC (permalink / raw)
  To: Rafael J. Wysocki, Lina Iyer
  Cc: Kevin Hilman, Ulf Hansson, Pavel Machek, Len Brown,
	Greg Kroah-Hartman, linux-pm, kernel-janitors

The first argument of WARN() is the condition, followed by the message.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index 661737c..7b4d41f 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -1297,7 +1297,7 @@ static int genpd_add_subdomain(struct generic_pm_domain *genpd,
 	 * powered on/off in that context.
 	 */
 	if (!genpd_is_irq_safe(genpd) && genpd_is_irq_safe(subdomain)) {
-		WARN("Parent %s of subdomain %s must be IRQ safe\n",
+		WARN(1, "Parent %s of subdomain %s must be IRQ safe\n",
 				genpd->name, subdomain->name);
 		return -EINVAL;
 	}

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

end of thread, other threads:[~2016-11-14  0:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-10 12:52 [patch] PM / Domains: Fix a warning message Dan Carpenter
2016-11-10 16:33 ` Pavel Machek
2016-11-10 19:25 ` Ulf Hansson
2016-11-14  0:40   ` Rafael J. Wysocki

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).