mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
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>
This commit is contained in:
parent
58c7be84fe
commit
7fba2c27a3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user