git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1931d43
)
kernel/panic.c: reduce 1 byte usage for print tainted buffer
author
Chen Gang
<gang.chen@asianux.com>
Tue, 12 Nov 2013 23:11:32 +0000
(15:11 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:35 +0000
(12:09 +0900)
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 <gang.chen@asianux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/panic.c
patch
|
blob
|
history
diff --cc
kernel/panic.c
Simple merge