mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
kernel/panic.c: reduce 1 byte usage for print tainted buffer
sizeof("Tainted: ") already counts '\0', and after first sprintf(), 's'
will start from the current string end (its' value is '\0').
So need not add additional 1 byte for maximized usage of 'buf' in
print_tainted().
Signed-off-by: Chen Gang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1931d433d7
commit
0128476471
1 changed files with 1 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ static const struct tnt tnts[] = {
|
|||
*/
|
||||
const char *print_tainted(void)
|
||||
{
|
||||
static char buf[ARRAY_SIZE(tnts) + sizeof("Tainted: ") + 1];
|
||||
static char buf[ARRAY_SIZE(tnts) + sizeof("Tainted: ")];
|
||||
|
||||
if (tainted_mask) {
|
||||
char *s;
|
||||
|
|
|
|||
Loading…
Reference in a new issue