diff options
Diffstat (limited to 'kernel/printk/printk.c')
-rw-r--r-- | kernel/printk/printk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index b3a1790f9e05..ff9faf4e3cd5 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c | |||
@@ -351,7 +351,7 @@ static void log_store(int facility, int level, | |||
351 | else | 351 | else |
352 | msg->ts_nsec = local_clock(); | 352 | msg->ts_nsec = local_clock(); |
353 | memset(log_dict(msg) + dict_len, 0, pad_len); | 353 | memset(log_dict(msg) + dict_len, 0, pad_len); |
354 | msg->len = sizeof(struct printk_log) + text_len + dict_len + pad_len; | 354 | msg->len = size; |
355 | 355 | ||
356 | /* insert message */ | 356 | /* insert message */ |
357 | log_next_idx += msg->len; | 357 | log_next_idx += msg->len; |