linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] [mm]: vmalloc: replace printk with pr_warn
@ 2014-10-12 11:56 Pintu Kumar
  0 siblings, 0 replies; only message in thread
From: Pintu Kumar @ 2014-10-12 11:56 UTC (permalink / raw)
  To: akpm, linux-kernel, linux-mm, liwanp, zhangyanfei, rientjes,
	edumazet, chaowang, fabf, catalin.marinas, nasa4836, av1474,
	gioh.kim, rob.jones
  Cc: cpgs, pintu.k, pintu_agarwal, vishnu.ps, rohit.kr, ed.savinay, iqbal.ams

This patch replaces printk(KERN_WARNING..) with pr_warn.
Thus it also reduces one line extra because of formatting.

Signed-off-by: Pintu Kumar <pintu.k@samsung.com>
---
 mm/vmalloc.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 90520af..8a18196 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -463,8 +463,7 @@ overflow:
 		goto retry;
 	}
 	if (printk_ratelimit())
-		printk(KERN_WARNING
-			"vmap allocation for size %lu failed: "
+		pr_warn("vmap allocation for size %lu failed: "
 			"use vmalloc=<size> to increase size.\n", size);
 	kfree(va);
 	return ERR_PTR(-EBUSY);
-- 
1.7.9.5

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

only message in thread, other threads:[~2014-10-12 12:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-12 11:56 [PATCH 1/1] [mm]: vmalloc: replace printk with pr_warn Pintu Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox