提交 0295a34d 编写于 作者: M Mandeep Singh Baines 提交者: Rafael J. Wysocki

PM: Use appropriate printk() priority level in trace.c

printk()s without a priority level default to KERN_WARNING. To reduce
noise at KERN_WARNING, this patch sets the priority level appriopriately
for unleveled printks()s. This should be useful to folks that look at
dmesg warnings closely.

Changed these messages to pr_info().
Signed-off-by: NMandeep Singh Baines <msb@chromium.org>
Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
上级 790c7885
...@@ -112,7 +112,7 @@ static unsigned int read_magic_time(void) ...@@ -112,7 +112,7 @@ static unsigned int read_magic_time(void)
unsigned int val; unsigned int val;
get_rtc_time(&time); get_rtc_time(&time);
printk("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n", pr_info("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n",
time.tm_hour, time.tm_min, time.tm_sec, time.tm_hour, time.tm_min, time.tm_sec,
time.tm_mon + 1, time.tm_mday, time.tm_year % 100); time.tm_mon + 1, time.tm_mday, time.tm_year % 100);
val = time.tm_year; /* 100 years */ val = time.tm_year; /* 100 years */
...@@ -179,7 +179,7 @@ static int show_file_hash(unsigned int value) ...@@ -179,7 +179,7 @@ static int show_file_hash(unsigned int value)
unsigned int hash = hash_string(lineno, file, FILEHASH); unsigned int hash = hash_string(lineno, file, FILEHASH);
if (hash != value) if (hash != value)
continue; continue;
printk(" hash matches %s:%u\n", file, lineno); pr_info(" hash matches %s:%u\n", file, lineno);
match++; match++;
} }
return match; return match;
...@@ -255,7 +255,7 @@ static int late_resume_init(void) ...@@ -255,7 +255,7 @@ static int late_resume_init(void)
val = val / FILEHASH; val = val / FILEHASH;
dev = val /* % DEVHASH */; dev = val /* % DEVHASH */;
printk(" Magic number: %d:%d:%d\n", user, file, dev); pr_info(" Magic number: %d:%d:%d\n", user, file, dev);
show_file_hash(file); show_file_hash(file);
show_dev_hash(dev); show_dev_hash(dev);
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册