Message ID | 20180917075316.8419-2-oohall@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | [1/2] nvram: Print how long we waited for nvram | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | master/apply_patch Successfully applied |
snowpatch_ozlabs/make_check | success | Test make_check on branch master |
diff --git a/core/nvram-format.c b/core/nvram-format.c index fc8e24820e5e..37c5cd5c5839 100644 --- a/core/nvram-format.c +++ b/core/nvram-format.c @@ -220,8 +220,9 @@ const char *nvram_query(const char *key) assert(key); if (!nvram_has_loaded()) { - prlog(PR_WARNING, "NVRAM: Query before is done loading\n"); - prlog(PR_WARNING, "NVRAM: Waiting for load\n"); + prlog(PR_DEBUG, + "NVRAM: Query for '%s' must wait for NVRAM to load\n", + key); if (!nvram_wait_for_load()) { prlog(PR_CRIT, "NVRAM: Failed to load\n"); return NULL;
We print a message when nvram_query() needs to wait for the NVRAM to be loaded from the BMC/FSP. Currently this is printed at PR_WARNING which is excessive since this doesn't actually indicate that anything is wrong. There's also nothing that we can really do about loading the NVRAM being slow, so just print this at PR_DEBUG. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> --- core/nvram-format.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)