aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <[email protected]>2018-02-06 15:36:51 -0800
committerLinus Torvalds <[email protected]>2018-02-06 18:32:43 -0800
commite3912ac37e07a13c70675cd75020694de4841c74 (patch)
tree78d2e8a58b5ff64444fedfa542fbaccd3d9a86c1 /lib/string_helpers.c
parent48c232395431c23d35cf3b4c5a090bd793316578 (diff)
proc: use %u for pid printing and slightly less stack
PROC_NUMBUF is 13 which is enough for "negative int + \n + \0". However PIDs and TGIDs are never negative and newline is not a concern, so use just 10 per integer. Link: http://lkml.kernel.org/r/20171120203005.GA27743@avx2 Signed-off-by: Alexey Dobriyan <[email protected]> Cc: Alexander Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions