diff options
author | Cyril Bur <cyril.bur@au1.ibm.com> | 2016-07-26 13:49:31 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-07-27 18:24:16 +1000 |
commit | d7ce0ac42b49d274c40fe8edf73b10a640116479 (patch) | |
tree | 8e3ff3749dd4461b34e4564d473b458412094d28 /core/nvram.c | |
parent | a2d630bc2bdd0007f06d1552361d08ef9d313a1a (diff) | |
download | skiboot-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.c | 3 |
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) |