summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-07-12 07:10:18 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-07-12 07:10:18 +0200
commitcab56acd98643d7cf08ab992cbb0557b4c2488f7 (patch)
tree404123ae35e715a6d2682795fad2632f9abe3d5f /common
parentca1c1456a16ee50f60f53e4efda04b310372a9b7 (diff)
parent5b1bc2224cff7deb2f1e048bb82a60d857f642be (diff)
downloadbarebox-cab56acd98643d7cf08ab992cbb0557b4c2488f7.tar.gz
barebox-cab56acd98643d7cf08ab992cbb0557b4c2488f7.tar.xz
Merge branch 'for-next/pstore'
Diffstat (limited to 'common')
-rw-r--r--common/console_common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/console_common.c b/common/console_common.c
index a4d2636753..6916f651e5 100644
--- a/common/console_common.c
+++ b/common/console_common.c
@@ -29,6 +29,7 @@
#include <password.h>
#include <clock.h>
#include <malloc.h>
+#include <linux/pstore.h>
#include <asm-generic/div64.h>
#ifndef CONFIG_CONSOLE_NONE
@@ -116,7 +117,10 @@ static void pr_puts(int level, const char *str)
barebox_logbuf_num_messages++;
}
}
+
+ pstore_log(str);
nolog:
+
if (level > barebox_loglevel)
return;