A failure in persistent_ram_init_ecc() ultimately results in
ramoops_probe() failing, so an error message is more appropriate than
the current info log level.

Signed-off-by: Ahmad Fatoum <a.fat...@pengutronix.de>
---
 fs/pstore/ram_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/pstore/ram_core.c b/fs/pstore/ram_core.c
index fbc936a44fd6..496c803045c3 100644
--- a/fs/pstore/ram_core.c
+++ b/fs/pstore/ram_core.c
@@ -207,7 +207,7 @@ static int persistent_ram_init_ecc(struct 
persistent_ram_zone *prz,
        prz->rs_decoder = init_rs(prz->ecc_info.symsize, prz->ecc_info.poly,
                                  0, 1, prz->ecc_info.ecc_size);
        if (prz->rs_decoder == NULL) {
-               pr_info("init_rs failed\n");
+               pr_err("init_rs failed\n");
                return -EINVAL;
        }
 
-- 
2.39.2


Reply via email to