aboutsummaryrefslogtreecommitdiff
path: root/core/nvram.c
diff options
context:
space:
mode:
authorCyril Bur <cyril.bur@au1.ibm.com>2016-07-26 13:49:31 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-07-27 18:24:16 +1000
commitd7ce0ac42b49d274c40fe8edf73b10a640116479 (patch)
tree8e3ff3749dd4461b34e4564d473b458412094d28 /core/nvram.c
parenta2d630bc2bdd0007f06d1552361d08ef9d313a1a (diff)
downloadskiboot-d7ce0ac42b49d274c40fe8edf73b10a640116479.zip
skiboot-d7ce0ac42b49d274c40fe8edf73b10a640116479.tar.gz
skiboot-d7ce0ac42b49d274c40fe8edf73b10a640116479.tar.bz2
nvram: Add extra debug printing when NVRAM needs formatting
Be more verbose (at debug level) when formatting the NVRAM, this can help catch errors at other levels of the stack. Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/nvram.c')
-rw-r--r--core/nvram.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/nvram.c b/core/nvram.c
index bde2dce..38babcc 100644
--- a/core/nvram.c
+++ b/core/nvram.c
@@ -64,7 +64,8 @@ void nvram_read_complete(bool success)
/* Check and maybe format nvram */
if (nvram_check(nvram_image, nvram_size)) {
- nvram_format(nvram_image, nvram_size);
+ if (nvram_format(nvram_image, nvram_size))
+ prerror("NVRAM: Failed to format NVRAM!\n");
/* Write the whole thing back */
if (platform.nvram_write)