Re: [dpdk-dev] [PATCH 2/2] cmdline: remove useless intermediate buffer

2018-06-25 Thread Olivier Matz
On Thu, May 31, 2018 at 10:03:28AM +0200, David Marchand wrote: > Rather than copy the string, we can use a precision in the format string > given to printf. > > Signed-off-by: David Marchand Acked-by: Olivier Matz

[dpdk-dev] [PATCH 2/2] cmdline: remove useless intermediate buffer

2018-05-31 Thread David Marchand
Rather than copy the string, we can use a precision in the format string given to printf. Signed-off-by: David Marchand --- lib/librte_cmdline/cmdline_parse.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/librte_cmdline/cmdline_parse.c b/lib/librte_cmdline/cmd