Skip to content
Commit e6fe3e5b authored by He Zhe's avatar He Zhe Committed by Petr Mladek
Browse files

printk: Give error on attempt to set log buffer length to over 2G

The current printk() is ready to handle log buffer size up to 2G.
Give an explicit error for users who want to use larger log buffer.

Also fix printk formatting to show the 2G as a positive number.

Link: http://lkml.kernel.org/r/20181008135916.gg4kkmoki5bgtco5@pathway.suse.cz


Cc: rostedt@goodmis.org
Cc: linux-kernel@vger.kernel.org
Suggested-by: default avatarSergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: default avatarHe Zhe <zhe.he@windriver.com>
Reviewed-by: default avatarSergey Senozhatsky <sergey.senozhatsky@gmail.com>
[pmladek: Fixed to the really safe limit 2GB.]
Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
parent dd5adbfb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment