mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
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>
This commit is contained in:
parent
e75ac7039a
commit
23c648982b
1 changed files with 8 additions and 7 deletions
|
|
@ -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;
|
||||
int len;
|
||||
va_list args;
|
||||
|
||||
va_start (args, fmt);
|
||||
len = diag_vsprintf (zm_out, fmt, args);
|
||||
zm_out += len;
|
||||
return len;
|
||||
va_start(args, fmt);
|
||||
len = diag_vsprintf(zm_out, fmt, args);
|
||||
va_end(args);
|
||||
zm_out += len;
|
||||
return len;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue