Skip to content

Commit

Permalink
mm/vmalloc.c: replace printk with pr_warn
Browse files Browse the repository at this point in the history
This patch replaces printk(KERN_WARNING..) with pr_warn.
Thus it also reduces one line extra because of formatting.

Signed-off-by: Pintu Kumar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Pintu Kumar authored and torvalds committed Dec 11, 2014
1 parent f88dfff commit 0cbc853
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mm/vmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,7 @@ static struct vmap_area *alloc_vmap_area(unsigned long size,
goto retry;
}
if (printk_ratelimit())
printk(KERN_WARNING
"vmap allocation for size %lu failed: "
pr_warn("vmap allocation for size %lu failed: "
"use vmalloc=<size> to increase size.\n", size);
kfree(va);
return ERR_PTR(-EBUSY);
Expand Down

0 comments on commit 0cbc853

Please sign in to comment.