Commit 87fb698c authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: Make rtasd dump KERN_DEBUG

From: Jake Moilanen <moilanen@austin.ibm.com>

Change the loglevel of an error log printed so it
does not goto the console.  Since error logs can
be upto 2k in size, it can spam the console.
parent e80bc2ce
......@@ -78,7 +78,7 @@ static void printk_log_rtas(char *buf, int len)
char buffer[64];
char * str = "RTAS event";
printk(RTAS_ERR "%d -------- %s begin --------\n", error_log_cnt, str);
printk(RTAS_DEBUG "%d -------- %s begin --------\n", error_log_cnt, str);
/*
* Print perline bytes on each line, each line will start
......@@ -99,12 +99,12 @@ static void printk_log_rtas(char *buf, int len)
n += sprintf(buffer+n, "%02x", (unsigned char)buf[i]);
if (j == (perline-1))
printk(KERN_ERR "%s\n", buffer);
printk(KERN_DEBUG "%s\n", buffer);
}
if ((i % perline) != 0)
printk(KERN_ERR "%s\n", buffer);
printk(KERN_DEBUG "%s\n", buffer);
printk(RTAS_ERR "%d -------- %s end ----------\n", error_log_cnt, str);
printk(RTAS_DEBUG "%d -------- %s end ----------\n", error_log_cnt, str);
}
static int log_rtas_len(char * buf)
......
......@@ -198,7 +198,7 @@ extern void pSeries_log_error(char *buf, unsigned int err_type, int fatal);
/* All the types and not flags */
#define ERR_TYPE_MASK (ERR_TYPE_RTAS_LOG | ERR_TYPE_KERNEL_PANIC)
#define RTAS_ERR KERN_ERR "RTAS: "
#define RTAS_DEBUG KERN_DEBUG "RTAS: "
#define RTAS_ERROR_LOG_MAX 2048
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment