]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
kernel/range.c: subtract_range: fix the broken phrase issued by printk
authorLin Feng <linfeng@cn.fujitsu.com>
Tue, 30 Apr 2013 22:27:07 +0000 (15:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 May 2013 00:04:01 +0000 (17:04 -0700)
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>
kernel/range.c

index 9b8ae2d6ed68794ac4b010999465990b24053f5e..071b0ab455cb39b81d78b362a86ff6ee86263a55 100644 (file)
@@ -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;