diff options
author | Mandeep Singh Baines <msb@chromium.org> | 2011-01-31 05:07:14 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-03-14 19:43:14 -0400 |
commit | 0295a34d61f14522fddb26856191520d2e1d7e77 (patch) | |
tree | 6ad5f6f7c467f512d36f3955f629aef1fa667c11 /drivers/base | |
parent | 790c7885a4b2105e41f7a80b035fdb78e406154f (diff) |
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: Mandeep Singh Baines <msb@chromium.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/power/trace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/base/power/trace.c b/drivers/base/power/trace.c index 9f4258df4cfd..c80e138b62fe 100644 --- a/drivers/base/power/trace.c +++ b/drivers/base/power/trace.c | |||
@@ -112,7 +112,7 @@ static unsigned int read_magic_time(void) | |||
112 | unsigned int val; | 112 | unsigned int val; |
113 | 113 | ||
114 | get_rtc_time(&time); | 114 | get_rtc_time(&time); |
115 | printk("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n", | 115 | pr_info("Time: %2d:%02d:%02d Date: %02d/%02d/%02d\n", |
116 | time.tm_hour, time.tm_min, time.tm_sec, | 116 | time.tm_hour, time.tm_min, time.tm_sec, |
117 | time.tm_mon + 1, time.tm_mday, time.tm_year % 100); | 117 | time.tm_mon + 1, time.tm_mday, time.tm_year % 100); |
118 | val = time.tm_year; /* 100 years */ | 118 | val = time.tm_year; /* 100 years */ |
@@ -179,7 +179,7 @@ static int show_file_hash(unsigned int value) | |||
179 | unsigned int hash = hash_string(lineno, file, FILEHASH); | 179 | unsigned int hash = hash_string(lineno, file, FILEHASH); |
180 | if (hash != value) | 180 | if (hash != value) |
181 | continue; | 181 | continue; |
182 | printk(" hash matches %s:%u\n", file, lineno); | 182 | pr_info(" hash matches %s:%u\n", file, lineno); |
183 | match++; | 183 | match++; |
184 | } | 184 | } |
185 | return match; | 185 | return match; |
@@ -255,7 +255,7 @@ static int late_resume_init(void) | |||
255 | val = val / FILEHASH; | 255 | val = val / FILEHASH; |
256 | dev = val /* % DEVHASH */; | 256 | dev = val /* % DEVHASH */; |
257 | 257 | ||
258 | printk(" Magic number: %d:%d:%d\n", user, file, dev); | 258 | pr_info(" Magic number: %d:%d:%d\n", user, file, dev); |
259 | show_file_hash(file); | 259 | show_file_hash(file); |
260 | show_dev_hash(dev); | 260 | show_dev_hash(dev); |
261 | return 0; | 261 | return 0; |