Skip to content

Commit

Permalink
PM: Use appropriate printk() priority level in trace.c
Browse files Browse the repository at this point in the history
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: Mandeep Singh Baines <msb@chromium.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
  • Loading branch information
Mandeep Singh Baines authored and Rafael J. Wysocki committed Mar 14, 2011
1 parent 790c788 commit 0295a34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/base/power/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ static unsigned int read_magic_time(void)
unsigned int val;

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_mon + 1, time.tm_mday, time.tm_year % 100);
val = time.tm_year; /* 100 years */
Expand Down Expand Up @@ -179,7 +179,7 @@ static int show_file_hash(unsigned int value)
unsigned int hash = hash_string(lineno, file, FILEHASH);
if (hash != value)
continue;
printk(" hash matches %s:%u\n", file, lineno);
pr_info(" hash matches %s:%u\n", file, lineno);
match++;
}
return match;
Expand Down Expand Up @@ -255,7 +255,7 @@ static int late_resume_init(void)
val = val / FILEHASH;
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_dev_hash(dev);
return 0;
Expand Down

0 comments on commit 0295a34

Please sign in to comment.