Also replace deprecated printk(KERN_ERR...) with pr_err() as suggested
by Yinghai, attaching the function name to provide plenty info.

Cc: Yinghai Lu <ying...@kernel.org>
Signed-off-by: Lin Feng <linf...@cn.fujitsu.com>
---
 kernel/range.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kernel/range.c b/kernel/range.c
index 9b8ae2d..071b0ab 100644
--- a/kernel/range.c
+++ b/kernel/range.c
@@ -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;
-- 
1.8.0.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to