mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Merge pull request #7676 from mikeller/fix_cli_printerrorlinef
Fixed 'cliPrintErrorLinef'.
This commit is contained in:
commit
daa6df8024
1 changed files with 9 additions and 5 deletions
|
@ -391,22 +391,26 @@ static void cliPrintLinef(const char *format, ...)
|
||||||
cliPrintLinefeed();
|
cliPrintLinefeed();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void cliPrintError(const char *format, ...)
|
static void cliPrintErrorVa(const char *format, va_list va)
|
||||||
{
|
{
|
||||||
cliPrint("###ERROR: ");
|
cliPrint("###ERROR: ");
|
||||||
va_list va;
|
|
||||||
va_start(va, format);
|
|
||||||
cliPrintfva(format, va);
|
cliPrintfva(format, va);
|
||||||
va_end(va);
|
va_end(va);
|
||||||
cliPrint("###");
|
cliPrint("###");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void cliPrintError(const char *format, ...)
|
||||||
|
{
|
||||||
|
va_list va;
|
||||||
|
va_start(va, format);
|
||||||
|
cliPrintErrorVa(format, va);
|
||||||
|
}
|
||||||
|
|
||||||
static void cliPrintErrorLinef(const char *format, ...)
|
static void cliPrintErrorLinef(const char *format, ...)
|
||||||
{
|
{
|
||||||
va_list va;
|
va_list va;
|
||||||
va_start(va, format);
|
va_start(va, format);
|
||||||
cliPrintError(format, va);
|
cliPrintErrorVa(format, va);
|
||||||
va_end(va);
|
|
||||||
cliPrintLinefeed();
|
cliPrintLinefeed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue