From: Lin Feng Date: Tue, 30 Apr 2013 22:27:07 +0000 (-0700) Subject: kernel/range.c: subtract_range: fix the broken phrase issued by printk X-Git-Tag: upstream/snapshot3+hdmi~5241^2~91 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7fba2c27a3e0cf7fa411fbab4839e1807a3e0734;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git kernel/range.c: subtract_range: fix the broken phrase issued by printk Also replace deprecated printk(KERN_ERR...) with pr_err() as suggested by Yinghai, attaching the function name to provide plenty info. Signed-off-by: Lin Feng Cc: Yinghai Lu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/range.c b/kernel/range.c index 9b8ae2d..071b0ab 100644 --- a/kernel/range.c +++ b/kernel/range.c @@ -97,7 +97,8 @@ void subtract_range(struct range *range, int az, u64 start, u64 end) range[i].end = range[j].end; range[i].start = end; } else { - printk(KERN_ERR "run of slot in ranges\n"); + pr_err("%s: run out of slot in ranges\n", + __func__); } range[j].end = start; continue;