Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7fba2c27 authored by Lin Feng's avatar Lin Feng Committed by Linus Torvalds
Browse files

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: default avatarLin Feng <linfeng@cn.fujitsu.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 58c7be84
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -97,7 +97,8 @@ void subtract_range(struct range *range, int az, u64 start, u64 end)
				range[i].end = range[j].end;
				range[i].end = range[j].end;
				range[i].start = end;
				range[i].start = end;
			} else {
			} 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;
			range[j].end = start;
			continue;
			continue;