diff options
author | Pridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com> | 2016-08-02 11:04:08 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-08-02 18:17:46 +1000 |
commit | 3560f4030ec456b408188b64e622926a6330c4f8 (patch) | |
tree | b5947c911f2d642910a9aaffeedbcc89dbad427f | |
parent | 98dbeb835a94a51f3ea8372459128c221ad5e5f2 (diff) | |
download | skiboot-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.c | 2 | ||||
-rw-r--r-- | core/hostservices.c | 2 | ||||
-rw-r--r-- | core/nvram-format.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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; |