diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2008-04-24 01:13:19 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-24 07:08:12 -0400 |
commit | f7ebf352b2e04ee89efb426e33dd450d8f1cfcd5 (patch) | |
tree | 9a46055bfeb2ab5392cdef3650a000898b58f4c6 /arch/powerpc/platforms/pseries/rtasd.c | |
parent | cb1e2ab45a92b31114dfe6e34832a084f9b0b263 (diff) |
[POWERPC] Convert from DBG() to pr_debug() in platforms/pseries/
In pseries/lpar.c, fix some printf specifier mismatches, and add
a newline to one printk.
In pseries/rtasd.c add "rtasd" to some messages to make it clear
where they're coming from.
In pseries/scanlog.c remove the hand-rolled runtime debugging support
in there. This file has been largely unchanged for eons, if we need to
debug it in future we can recompile.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries/rtasd.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/rtasd.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/arch/powerpc/platforms/pseries/rtasd.c b/arch/powerpc/platforms/pseries/rtasd.c index e3078ce41518..befadd4f9524 100644 --- a/arch/powerpc/platforms/pseries/rtasd.c +++ b/arch/powerpc/platforms/pseries/rtasd.c | |||
@@ -29,11 +29,6 @@ | |||
29 | #include <asm/atomic.h> | 29 | #include <asm/atomic.h> |
30 | #include <asm/machdep.h> | 30 | #include <asm/machdep.h> |
31 | 31 | ||
32 | #if 0 | ||
33 | #define DEBUG(A...) printk(KERN_ERR A) | ||
34 | #else | ||
35 | #define DEBUG(A...) | ||
36 | #endif | ||
37 | 32 | ||
38 | static DEFINE_SPINLOCK(rtasd_log_lock); | 33 | static DEFINE_SPINLOCK(rtasd_log_lock); |
39 | 34 | ||
@@ -198,7 +193,7 @@ void pSeries_log_error(char *buf, unsigned int err_type, int fatal) | |||
198 | unsigned long s; | 193 | unsigned long s; |
199 | int len = 0; | 194 | int len = 0; |
200 | 195 | ||
201 | DEBUG("logging event\n"); | 196 | pr_debug("rtasd: logging event\n"); |
202 | if (buf == NULL) | 197 | if (buf == NULL) |
203 | return; | 198 | return; |
204 | 199 | ||
@@ -409,7 +404,8 @@ static int rtasd(void *unused) | |||
409 | daemonize("rtasd"); | 404 | daemonize("rtasd"); |
410 | 405 | ||
411 | printk(KERN_DEBUG "RTAS daemon started\n"); | 406 | printk(KERN_DEBUG "RTAS daemon started\n"); |
412 | DEBUG("will sleep for %d milliseconds\n", (30000/rtas_event_scan_rate)); | 407 | pr_debug("rtasd: will sleep for %d milliseconds\n", |
408 | (30000 / rtas_event_scan_rate)); | ||
413 | 409 | ||
414 | /* See if we have any error stored in NVRAM */ | 410 | /* See if we have any error stored in NVRAM */ |
415 | memset(logdata, 0, rtas_error_log_max); | 411 | memset(logdata, 0, rtas_error_log_max); |
@@ -428,9 +424,9 @@ static int rtasd(void *unused) | |||
428 | do_event_scan_all_cpus(1000); | 424 | do_event_scan_all_cpus(1000); |
429 | 425 | ||
430 | if (surveillance_timeout != -1) { | 426 | if (surveillance_timeout != -1) { |
431 | DEBUG("enabling surveillance\n"); | 427 | pr_debug("rtasd: enabling surveillance\n"); |
432 | enable_surveillance(surveillance_timeout); | 428 | enable_surveillance(surveillance_timeout); |
433 | DEBUG("surveillance enabled\n"); | 429 | pr_debug("rtasd: surveillance enabled\n"); |
434 | } | 430 | } |
435 | 431 | ||
436 | /* Delay should be at least one second since some | 432 | /* Delay should be at least one second since some |