staging: android: lowmemorykiller: well-marked debug print
authorDmitry Voytik <dvv.kernel@gmail.com>
Sat, 16 Mar 2013 07:37:26 +0000 (11:37 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 18:02:55 +0000 (11:02 -0700)
Add "lowmemorykiller:" prefix to the debug print so it's easier to
analyse LMK's debug output:
dmesg | grep lowmemorykiller

Signed-off-by: Dmitry Voytik <dvv.kernel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/lowmemorykiller.c

index 53d80c2650ec9e8291d3de5000dc4a6c97228246..fe74494868ef33037e7e43602471b51780f6c37d 100644 (file)
@@ -30,6 +30,8 @@
  *
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
@@ -61,7 +63,7 @@ static unsigned long lowmem_deathpending_timeout;
 #define lowmem_print(level, x...)                      \
        do {                                            \
                if (lowmem_debug_level >= (level))      \
-                       printk(x);                      \
+                       pr_info(x);                     \
        } while (0)
 
 static int lowmem_shrink(struct shrinker *s, struct shrink_control *sc)