summaryrefslogtreecommitdiffstats
path: root/include/linux/printk.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2023-06-12 13:36:13 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-06-12 14:29:59 +0200
commit1baa83292b3b742e5c5dacff8b2c67ee62668184 (patch)
treec1bc61f8d7af8b7b0f0ac8bf34603f7b5e0e6772 /include/linux/printk.h
parent7322616af39e3dde8783297a5c493311f23f5fd6 (diff)
downloadbarebox-1baa83292b3b742e5c5dacff8b2c67ee62668184.tar.gz
barebox-1baa83292b3b742e5c5dacff8b2c67ee62668184.tar.xz
dmesg: factor out str_to_loglevel()
dmesg open codes functionality to convert a string to a loglevel. Make a separate function from it which will be useful in the next patch. While at it remove the BAREBOX_LOG_PRINT_* defines and use MSG_* defines directly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux/printk.h')
-rw-r--r--include/linux/printk.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/printk.h b/include/linux/printk.h
index 42c29e04dd..057b355aa1 100644
--- a/include/linux/printk.h
+++ b/include/linux/printk.h
@@ -159,16 +159,6 @@ extern void log_clean(unsigned int limit);
#define BAREBOX_LOG_DIFF_TIME BIT(1)
#define BAREBOX_LOG_PRINT_TIME BIT(0)
-#define BAREBOX_LOG_PRINT_VDEBUG BIT(8)
-#define BAREBOX_LOG_PRINT_DEBUG BIT(7)
-#define BAREBOX_LOG_PRINT_INFO BIT(6)
-#define BAREBOX_LOG_PRINT_NOTICE BIT(5)
-#define BAREBOX_LOG_PRINT_WARNING BIT(4)
-#define BAREBOX_LOG_PRINT_ERR BIT(3)
-#define BAREBOX_LOG_PRINT_CRIT BIT(2)
-#define BAREBOX_LOG_PRINT_ALERT BIT(1)
-#define BAREBOX_LOG_PRINT_EMERG BIT(0)
-
int log_writefile(const char *filepath);
void log_print(unsigned flags, unsigned levels);