On Sun, 17 Mar 2019 11:44:00 +0800 zhenwei pi <pizhenwei@xxxxxxxxxxxxx> wrote: > It seems that va_start(va_list ap, last) function can not work well with > format "%-*s". So re-write scsi_sprintf to avoid this case. > > And this patch is tested with gcc-5.4, gcc-6.3 and gcc-7.3, all cases > work well. > > Signed-off-by: zhenwei pi <pizhenwei@xxxxxxxxxxxxx> > --- > usr/util.h | 20 +++++++------------- > 1 file changed, 7 insertions(+), 13 deletions(-) Looks fine. Pushed, thanks!