diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 17fa6dc77053b370a55125eaa8683a84e589b8f6..c55cd18206895c53dd0974206c80f9298b3845e4 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -1399,7 +1399,7 @@ static size_t record_print_text(struct printk_record *r, bool syslog, * not counted in the return value. */ if (buf_size > 0) - text[len] = 0; + r->text_buf[len] = 0; return len; }