diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2019-11-29 16:14:46 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-12-02 11:02:21 +0100 |
commit | 4d9d35de7482fd5228d49d5a83ac13cb92f5eb9a (patch) | |
tree | f8c3230d68eb0a84e3563fd91f0ff3e4c9eb445f | |
parent | c3f335370cd4b609589129f14a156cffcd3e4a0b (diff) | |
download | barebox-4d9d35de7482fd5228d49d5a83ac13cb92f5eb9a.tar.gz barebox-4d9d35de7482fd5228d49d5a83ac13cb92f5eb9a.tar.xz |
pstore: don't try to grab non-existent logbuf
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | fs/pstore/platform.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 0a6fa38edc..f4b77226d9 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c @@ -73,6 +73,9 @@ static void pstore_console_capture_log(void) uint64_t id; struct log_entry *log, *tmp; + if (IS_ENABLED(CONFIG_CONSOLE_NONE)) + return; + list_for_each_entry_safe(log, tmp, &barebox_logbuf, list) { psinfo->write_buf(PSTORE_TYPE_CONSOLE, 0, &id, 0, log->msg, 0, strlen(log->msg), psinfo); |