diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-05-07 21:59:34 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-05-10 20:38:34 -0400 |
commit | 23c648982b88725f9e2bab4294a7ca8ea368e3bc (patch) | |
tree | 3fd8d40ae093511c8cea9b9b9da2076c4247f315 /common | |
parent | e75ac7039a51becdb80ea585443e9c2fdb58f716 (diff) | |
download | u-boot-23c648982b88725f9e2bab4294a7ca8ea368e3bc.tar.gz |
xyz-modem: va_start() must be matched by va_end()
Every va_start() call must be matched by a va_end() call.
scripts/checkpatch.pl required reformatting the complete function
zm_dprintf().
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/xyzModem.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/common/xyzModem.c b/common/xyzModem.c index 519e414a6c..830fca8387 100644 --- a/common/xyzModem.c +++ b/common/xyzModem.c @@ -180,15 +180,16 @@ static char *zm_out = zm_debug_buf; static char *zm_out_start = zm_debug_buf; static int -zm_dprintf (char *fmt, ...) +zm_dprintf(char *fmt, ...) { - int len; - va_list args; - - va_start (args, fmt); - len = diag_vsprintf (zm_out, fmt, args); - zm_out += len; - return len; + int len; + va_list args; + + va_start(args, fmt); + len = diag_vsprintf(zm_out, fmt, args); + va_end(args); + zm_out += len; + return len; } static void |