mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
printk: Correct wrong casting
log_first_seq and console_seq are 64-bit unsigned integers. Correct a wrong casting that might cut off the output. Link: http://lkml.kernel.org/r/[email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: He Zhe <[email protected]> [[email protected]: More descriptive commit message] Reviewed-by: Sergey Senozhatsky <[email protected]> Signed-off-by: Petr Mladek <[email protected]>
This commit is contained in:
parent
277fcdb2cf
commit
51a72ab737
1 changed files with 3 additions and 2 deletions
|
|
@ -2358,8 +2358,9 @@ again:
|
|||
printk_safe_enter_irqsave(flags);
|
||||
raw_spin_lock(&logbuf_lock);
|
||||
if (console_seq < log_first_seq) {
|
||||
len = sprintf(text, "** %u printk messages dropped **\n",
|
||||
(unsigned)(log_first_seq - console_seq));
|
||||
len = sprintf(text,
|
||||
"** %llu printk messages dropped **\n",
|
||||
log_first_seq - console_seq);
|
||||
|
||||
/* messages are gone, move to first one */
|
||||
console_seq = log_first_seq;
|
||||
|
|
|
|||
Loading…
Reference in a new issue