aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/tmem.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-06-28 06:21:41 -0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2013-06-28 11:19:58 -0400
commit283c0972d53769ee44750cad4c27e3f5fa26ec1f (patch)
tree598a36146515f114e21047daa9e19ea8ac8e5fdc /drivers/xen/tmem.c
parent65e053a7038c608f89272d4fb1f899890c579f0a (diff)
xen: Convert printks to pr_<level>
Convert printks to pr_<level> (excludes printk(KERN_DEBUG...) to be more consistent throughout the xen subsystem. Add pr_fmt with KBUILD_MODNAME or "xen:" KBUILD_MODNAME Coalesce formats and add missing word spaces Add missing newlines Align arguments and reflow to 80 columns Remove DRV_NAME from formats as pr_fmt adds the same content This does change some of the prefixes of these messages but it also does make them more consistent. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/tmem.c')
-rw-r--r--drivers/xen/tmem.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/xen/tmem.c b/drivers/xen/tmem.c
index cc072c66c766..fd823877b947 100644
--- a/drivers/xen/tmem.c
+++ b/drivers/xen/tmem.c
@@ -5,6 +5,8 @@
5 * Author: Dan Magenheimer 5 * Author: Dan Magenheimer
6 */ 6 */
7 7
8#define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt
9
8#include <linux/module.h> 10#include <linux/module.h>
9#include <linux/kernel.h> 11#include <linux/kernel.h>
10#include <linux/types.h> 12#include <linux/types.h>
@@ -388,8 +390,8 @@ static int xen_tmem_init(void)
388 return PTR_ERR(old_ops); 390 return PTR_ERR(old_ops);
389 s = " (WARNING: frontswap_ops overridden)"; 391 s = " (WARNING: frontswap_ops overridden)";
390 } 392 }
391 printk(KERN_INFO "frontswap enabled, RAM provided by " 393 pr_info("frontswap enabled, RAM provided by Xen Transcendent Memory%s\n",
392 "Xen Transcendent Memory%s\n", s); 394 s);
393 } 395 }
394#endif 396#endif
395#ifdef CONFIG_CLEANCACHE 397#ifdef CONFIG_CLEANCACHE
@@ -400,8 +402,8 @@ static int xen_tmem_init(void)
400 cleancache_register_ops(&tmem_cleancache_ops); 402 cleancache_register_ops(&tmem_cleancache_ops);
401 if (old_ops) 403 if (old_ops)
402 s = " (WARNING: cleancache_ops overridden)"; 404 s = " (WARNING: cleancache_ops overridden)";
403 printk(KERN_INFO "cleancache enabled, RAM provided by " 405 pr_info("cleancache enabled, RAM provided by Xen Transcendent Memory%s\n",
404 "Xen Transcendent Memory%s\n", s); 406 s);
405 } 407 }
406#endif 408#endif
407#ifdef CONFIG_XEN_SELFBALLOONING 409#ifdef CONFIG_XEN_SELFBALLOONING