summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2019-02-21 14:26:02 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-02-27 09:20:28 +0100
commit3f3cf502063c8bc7733147260cf71f43540176c0 (patch)
treef75c1f8226378fd94d2a077a56971fa176999633 /include
parent5bb32548c55295cf0296d6db18e627980b616a53 (diff)
downloadbarebox-3f3cf502063c8bc7733147260cf71f43540176c0.tar.gz
barebox-3f3cf502063c8bc7733147260cf71f43540176c0.tar.xz
commands: dmesg: add print raw parameter
Add -r option to mimic functionality of linux dmesg. It will prefix log level and timestamp to each buffer: <6>[ 460us] barebox 2019.02.0-00266-g6aea757067-dirty #355 Thu Feb 21 11:51:43 CET 2019 <6>[ 6279us] Board: DPTechnics DPT-Module <6>[ 209281us] mdio_bus: miibus0: probed <6>[ 210184us] ag71xx-gmac 18070000.mac@19000000.of: network device registered <6>[ 216051us] m25p80 w25q128@00: w25q128 (16384 Kbytes) <6>[ 219913us] netconsole: registered as netconsole-1 <6>[ 223312us] malloc space: 0x80c00000 -> 0x80ffffff (size 4 MiB) <6>[ 228255us] eth0: got preset MAC address: c4:93:00:00:ae:89 <6>[ 246363us] running /env/bin/init... Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/printk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/printk.h b/include/printk.h
index ab2c64cf3c..64205b2880 100644
--- a/include/printk.h
+++ b/include/printk.h
@@ -136,6 +136,7 @@ extern void log_clean(unsigned int limit);
#define BAREBOX_LOG_PRINT_TIME (1 << 0)
#define BAREBOX_LOG_DIFF_TIME (1 << 1)
+#define BAREBOX_LOG_PRINT_RAW (1 << 2)
void log_print(unsigned flags);