Merge branch 'rework/printk_safe-removal' into for-linus
[platform/kernel/linux-rpi.git] / kernel / printk / internal.h
index b6d310c..9f3ed2f 100644 (file)
@@ -6,6 +6,12 @@
 
 #ifdef CONFIG_PRINTK
 
+/* Flags for a single printk record. */
+enum printk_info_flags {
+       LOG_NEWLINE     = 2,    /* text ended with a newline */
+       LOG_CONT        = 8,    /* text is a fragment of a continuation line */
+};
+
 __printf(4, 0)
 int vprintk_store(int facility, int level,
                  const struct dev_printk_info *dev_info,
@@ -30,6 +36,8 @@ bool printk_percpu_data_ready(void);
 
 void defer_console_output(void);
 
+u16 printk_parse_prefix(const char *text, int *level,
+                       enum printk_info_flags *flags);
 #else
 
 /*