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>
This commit is contained in:
parent
0cbc8533b7
commit
8612c6639b
|
@ -260,8 +260,7 @@ shrink_slab_node(struct shrink_control *shrinkctl, struct shrinker *shrinker,
|
||||||
do_div(delta, lru_pages + 1);
|
do_div(delta, lru_pages + 1);
|
||||||
total_scan += delta;
|
total_scan += delta;
|
||||||
if (total_scan < 0) {
|
if (total_scan < 0) {
|
||||||
printk(KERN_ERR
|
pr_err("shrink_slab: %pF negative objects to delete nr=%ld\n",
|
||||||
"shrink_slab: %pF negative objects to delete nr=%ld\n",
|
|
||||||
shrinker->scan_objects, total_scan);
|
shrinker->scan_objects, total_scan);
|
||||||
total_scan = freeable;
|
total_scan = freeable;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue