Re: [PATCH 05/10] proc: use %u for pid printing and slightly less stack

2020-12-03 Thread Alexey Dobriyan
On Fri, Dec 04, 2020 at 02:31:59AM +0800, Wen Yang wrote: > From: Alexey Dobriyan > > [ Upstream commit e3912ac37e07a13c70675cd75020694de4841c74 ] > > 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

[PATCH 05/10] proc: use %u for pid printing and slightly less stack

2020-12-03 Thread Wen Yang
From: Alexey Dobriyan [ Upstream commit e3912ac37e07a13c70675cd75020694de4841c74 ] 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.G