summaryrefslogtreecommitdiff
path: root/kernel/range.c
diff options
context:
space:
mode:
authorLin Feng <linfeng@cn.fujitsu.com>2013-05-01 02:27:07 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-05-01 04:04:01 +0400
commit7fba2c27a3e0cf7fa411fbab4839e1807a3e0734 (patch)
tree70e4c22a99a682752f7802162108de8e653eb604 /kernel/range.c
parent58c7be84fec87b3a96964d65129b36c0e8c59a19 (diff)
downloadlinux-7fba2c27a3e0cf7fa411fbab4839e1807a3e0734.tar.xz
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 <linfeng@cn.fujitsu.com> Cc: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/range.c')
-rw-r--r--kernel/range.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/range.c b/kernel/range.c
index 9b8ae2d6ed68..071b0ab455cb 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;