|
@@ -1561,6 +1561,11 @@ asmlinkage int vprintk_emit(int facility, int level,
|
|
|
case 'd': /* KERN_DEFAULT */
|
|
|
lflags |= LOG_PREFIX;
|
|
|
}
|
|
|
+ /*
|
|
|
+ * No need to check length here because vscnprintf
|
|
|
+ * put '\0' at the end of the string. Only valid and
|
|
|
+ * newly printed level is detected.
|
|
|
+ */
|
|
|
text_len -= end_of_header - text;
|
|
|
text = (char *)end_of_header;
|
|
|
}
|