Skip to content

Commit

Permalink
kernel/range.c: subtract_range: fix the broken phrase issued by printk
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Yinghai Lu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Lin Feng authored and torvalds committed May 1, 2013
1 parent 58c7be8 commit 7fba2c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/range.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7fba2c2

Please sign in to comment.