cmdline: remove useless intermediate buffer
authorDavid Marchand <david.marchand@6wind.com>
Thu, 31 May 2018 08:03:28 +0000 (10:03 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 27 Jun 2018 16:25:30 +0000 (18:25 +0200)
commit3c5b140d18179f82e9de4a30c08980a173f84a5a
treed5547401921ce2916c3dc4f44d38d6e29f3de5a5
parent0c41aab8e287909c3b2a963c9ba74494f3f1485b
cmdline: remove useless intermediate buffer

Rather than copy the string, we can use a precision in the format string
given to printf.

Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_cmdline/cmdline_parse.c