Re: [PATCH] kexec: Fix snprintf related compilation warnings

2020-09-29 Thread Simon Horman
On Wed, Sep 23, 2020 at 04:42:37PM +0530, Bhupesh Sharma wrote: > This patch fixes the following snprintf related compilation warning > seen currently with gcc versions 7 and 8 when kexec is compiled with > -Wformat-truncation option: > > kexec/fs2dt.c:673:34: warning: ‘stdout-path’ directive

[PATCH] kexec: Fix snprintf related compilation warnings

2020-09-23 Thread Bhupesh Sharma
This patch fixes the following snprintf related compilation warning seen currently with gcc versions 7 and 8 when kexec is compiled with -Wformat-truncation option: kexec/fs2dt.c:673:34: warning: ‘stdout-path’ directive output may be truncated writing 11 bytes into a region of size between 1