@@ -1956,7 +1956,7 @@ static inline u32 printk_caller_id(void)
1956
1956
}
1957
1957
1958
1958
/**
1959
- * parse_prefix - Parse level and control flags.
1959
+ * printk_parse_prefix - Parse level and control flags.
1960
1960
*
1961
1961
* @text: The terminated text message.
1962
1962
* @level: A pointer to the current level value, will be updated.
@@ -1972,7 +1972,7 @@ static inline u32 printk_caller_id(void)
1972
1972
*
1973
1973
* Return: The length of the parsed level and control flags.
1974
1974
*/
1975
- static u16 parse_prefix ( char * text , int * level ,
1975
+ u16 printk_parse_prefix ( const char * text , int * level ,
1976
1976
enum printk_info_flags * flags )
1977
1977
{
1978
1978
u16 prefix_len = 0 ;
@@ -2018,7 +2018,7 @@ static u16 printk_sprint(char *text, u16 size, int facility,
2018
2018
if (facility == 0 ) {
2019
2019
u16 prefix_len ;
2020
2020
2021
- prefix_len = parse_prefix (text , NULL , NULL );
2021
+ prefix_len = printk_parse_prefix (text , NULL , NULL );
2022
2022
if (prefix_len ) {
2023
2023
text_len -= prefix_len ;
2024
2024
memmove (text , text + prefix_len , text_len );
@@ -2067,7 +2067,7 @@ int vprintk_store(int facility, int level,
2067
2067
2068
2068
/* Extract log level or control flags. */
2069
2069
if (facility == 0 )
2070
- parse_prefix (& prefix_buf [0 ], & level , & flags );
2070
+ printk_parse_prefix (& prefix_buf [0 ], & level , & flags );
2071
2071
2072
2072
if (level == LOGLEVEL_DEFAULT )
2073
2073
level = default_message_loglevel ;
0 commit comments