aboutsummaryrefslogtreecommitdiffstats
path: root/mm/vmscan.c
diff options
context:
space:
mode:
authorPintu Kumar <pintu.k@samsung.com>2014-12-10 18:42:58 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-10 20:41:05 -0500
commit8612c6639b70c59308cf37ae4790817df9621281 (patch)
tree4ac9375c9a5b2c73b596c83a5ffc6a58775bd1e8 /mm/vmscan.c
parent0cbc8533b75b6d8e3416e598e9dbf40d8bcf4e01 (diff)
mm/vmscan.c: replace printk with pr_err
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>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r--mm/vmscan.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index dcb47074ae03..59605b7c9970 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -260,8 +260,7 @@ shrink_slab_node(struct shrink_control *shrinkctl, struct shrinker *shrinker,
260 do_div(delta, lru_pages + 1); 260 do_div(delta, lru_pages + 1);
261 total_scan += delta; 261 total_scan += delta;
262 if (total_scan < 0) { 262 if (total_scan < 0) {
263 printk(KERN_ERR 263 pr_err("shrink_slab: %pF negative objects to delete nr=%ld\n",
264 "shrink_slab: %pF negative objects to delete nr=%ld\n",
265 shrinker->scan_objects, total_scan); 264 shrinker->scan_objects, total_scan);
266 total_scan = freeable; 265 total_scan = freeable;
267 } 266 }