]> git.karo-electronics.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>
Wed, 20 Mar 2013 04:07:32 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Mar 2013 04:22:54 +0000 (15:22 +1100)
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>
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;