Re: [Xen-devel] [PATCH v2] tools: fix several "format-truncation" warnings with GCC 7

2017-06-13 Thread Zhongze Liu
Hi Wei & Ian, 2017-06-13 18:52 GMT+08:00 Wei Liu : > On Tue, Jun 13, 2017 at 11:19:58AM +0100, Ian Jackson wrote: >> Zhongze Liu writes ("[PATCH v2] tools: fix several "format-truncation" >> warnings with GCC 7"): >> > GCC 7.1.1 complains that several buffers passed to snprintf() in >> > xenpmd a

Re: [Xen-devel] [PATCH v2] tools: fix several "format-truncation" warnings with GCC 7

2017-06-13 Thread Wei Liu
On Tue, Jun 13, 2017 at 11:19:58AM +0100, Ian Jackson wrote: > Zhongze Liu writes ("[PATCH v2] tools: fix several "format-truncation" > warnings with GCC 7"): > > GCC 7.1.1 complains that several buffers passed to snprintf() in > > xenpmd and tools/ocmal/xc are too small to hold the largest possib

Re: [Xen-devel] [PATCH v2] tools: fix several "format-truncation" warnings with GCC 7

2017-06-13 Thread Ian Jackson
Zhongze Liu writes ("[PATCH v2] tools: fix several "format-truncation" warnings with GCC 7"): > GCC 7.1.1 complains that several buffers passed to snprintf() in > xenpmd and tools/ocmal/xc are too small to hold the largest possible > resulting string. > > enlarge the size of these buffers to fix

Re: [Xen-devel] [PATCH v2] tools: fix several "format-truncation" warnings with GCC 7

2017-06-13 Thread Wei Liu
On Tue, Jun 13, 2017 at 01:51:17AM +0800, Zhongze Liu wrote: > GCC 7.1.1 complains that several buffers passed to snprintf() in xenpmd > and tools/ocmal/xc are too small to hold the largest possible resulting > string. > > enlarge the size of these buffers to fix the warnings. > > Signed-off-by:

[Xen-devel] [PATCH v2] tools: fix several "format-truncation" warnings with GCC 7

2017-06-12 Thread Zhongze Liu
GCC 7.1.1 complains that several buffers passed to snprintf() in xenpmd and tools/ocmal/xc are too small to hold the largest possible resulting string. enlarge the size of these buffers to fix the warnings. Signed-off-by: Zhongze Liu --- CC: David Scott CC: Ian Jackson CC: Wei Liu Changed si