summaryrefslogtreecommitdiffstats
path: root/drivers/tty/synclinkmp.c
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-01-24 05:14:52 +0100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-11-25 01:50:57 +0100
commite0513d9ea8dd2a7b21b699ada8d59d8afbb8b5b7 (patch)
treed0b5475c65196b3aa07f8f56c63e0a1cbf94be39 /drivers/tty/synclinkmp.c
parentpowerpc/signals: Improved mark VSX not saved with small contexts fix (diff)
downloadlinux-e0513d9ea8dd2a7b21b699ada8d59d8afbb8b5b7.tar.xz
linux-e0513d9ea8dd2a7b21b699ada8d59d8afbb8b5b7.zip
arch/powerpc/kernel: Use %12.12s instead of %12s to avoid memory overflow
for tmp_part->header.name: it is "Terminating null required only for names < 12 chars". so need to limit the %.12s for it in printk additional info: %12s limit the width, not for the original string output length if name length is more than 12, it still can be fully displayed. if name length is less than 12, the ' ' will be filled before name. %.12s truly limit the original string output length (precision) Signed-off-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/tty/synclinkmp.c')
0 files changed, 0 insertions, 0 deletions