mm/vmscan.c: replace printk with pr_err
authorPintu Kumar <pintu.k@samsung.com>
Wed, 10 Dec 2014 23:42:58 +0000 (15:42 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:05 +0000 (17:41 -0800)
This patch replaces printk(KERN_ERR..) with pr_err found under
shrink_slab.  Thus it also reduces one line extra because of formatting.

Signed-off-by: Pintu Kumar <pintu.k@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmscan.c

index dcb4707..59605b7 100644 (file)
@@ -260,8 +260,7 @@ shrink_slab_node(struct shrink_control *shrinkctl, struct shrinker *shrinker,
        do_div(delta, lru_pages + 1);
        total_scan += delta;
        if (total_scan < 0) {
-               printk(KERN_ERR
-               "shrink_slab: %pF negative objects to delete nr=%ld\n",
+               pr_err("shrink_slab: %pF negative objects to delete nr=%ld\n",
                       shrinker->scan_objects, total_scan);
                total_scan = freeable;
        }