mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 11:59:58 +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();
|
||||
}
|
||||
|
||||
static void cliPrintError(const char *format, ...)
|
||||
static void cliPrintErrorVa(const char *format, va_list va)
|
||||
{
|
||||
cliPrint("###ERROR: ");
|
||||
va_list va;
|
||||
va_start(va, format);
|
||||
cliPrintfva(format, va);
|
||||
va_end(va);
|
||||
cliPrint("###");
|
||||
}
|
||||
|
||||
static void cliPrintError(const char *format, ...)
|
||||
{
|
||||
va_list va;
|
||||
va_start(va, format);
|
||||
cliPrintErrorVa(format, va);
|
||||
}
|
||||
|
||||
static void cliPrintErrorLinef(const char *format, ...)
|
||||
{
|
||||
va_list va;
|
||||
va_start(va, format);
|
||||
cliPrintError(format, va);
|
||||
va_end(va);
|
||||
cliPrintErrorVa(format, va);
|
||||
cliPrintLinefeed();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue