aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com>2016-08-02 11:04:08 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-08-02 18:17:46 +1000
commit3560f4030ec456b408188b64e622926a6330c4f8 (patch)
treeb5947c911f2d642910a9aaffeedbcc89dbad427f
parent98dbeb835a94a51f3ea8372459128c221ad5e5f2 (diff)
downloadskiboot-3560f4030ec456b408188b64e622926a6330c4f8.zip
skiboot-3560f4030ec456b408188b64e622926a6330c4f8.tar.gz
skiboot-3560f4030ec456b408188b64e622926a6330c4f8.tar.bz2
log_level: Reduce the in memory console log_level to lower priority
Below are the in-memory console log messages observed with error level(PR_ERROR) [54460318,3] HBRT: Mem region 'ibm,homer-image' not found ! [54465404,3] HBRT: Mem region 'ibm,homer-image' not found ! [54470372,3] HBRT: Mem region 'ibm,homer-image' not found ! [54475369,3] HBRT: Mem region 'ibm,homer-image' not found ! [11540917382,3] NVRAM: Layout appears sane [11694529822,3] OPAL: Trying a CPU re-init with flags: 0x2 [61291003267,3] OPAL: Trying a CPU re-init with flags: 0x1 [61394005956,3] OPAL: Trying a CPU re-init with flags: 0x2 Lowering the log level of mem region not found messages to PR_WARNING and remaining messages to PR_INFO level [54811683,4] HBRT: Mem region 'ibm,homer-image' not found ! [10923382751,6] NVRAM: Layout appears sane [55533988976,6] OPAL: Trying a CPU re-init with flags: 0x1 Signed-off-by: Pridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> (cherry picked from commit 341daa8104af3231b908e6fcffeedb5e47b33990) Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--core/cpu.c2
-rw-r--r--core/hostservices.c2
-rw-r--r--core/nvram-format.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/core/cpu.c b/core/cpu.c
index 68c027c..f816efe 100644
--- a/core/cpu.c
+++ b/core/cpu.c
@@ -705,7 +705,7 @@ static int64_t opal_reinit_cpus(uint64_t flags)
int64_t rc = OPAL_SUCCESS;
int i;
- prerror("OPAL: Trying a CPU re-init with flags: 0x%llx\n", flags);
+ prlog(PR_INFO, "OPAL: Trying a CPU re-init with flags: 0x%llx\n", flags);
lock(&reinit_lock);
diff --git a/core/hostservices.c b/core/hostservices.c
index 815654d..a7d7d4f 100644
--- a/core/hostservices.c
+++ b/core/hostservices.c
@@ -523,7 +523,7 @@ static uint64_t hservice_get_reserved_mem(const char *name)
unlock(&mem_region_lock);
if (!ret)
- prerror("HBRT: Mem region '%s' not found !\n", name);
+ prlog(PR_WARNING, "HBRT: Mem region '%s' not found !\n", name);
return ret;
}
diff --git a/core/nvram-format.c b/core/nvram-format.c
index 881a3b9..f794e8d 100644
--- a/core/nvram-format.c
+++ b/core/nvram-format.c
@@ -151,7 +151,7 @@ int nvram_check(void *nvram_image, const uint32_t nvram_size)
goto failed;
}
- prerror("NVRAM: Layout appears sane\n");
+ prlog(PR_INFO, "NVRAM: Layout appears sane\n");
return 0;
failed:
return -1;