Fixed 'cliPrintErrorLinef'.

This commit is contained in:
mikeller 2019-02-28 20:23:04 +13:00
parent 750e7c30cf
commit 319dd7e109
1 changed files with 9 additions and 5 deletions

View File

@ -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();
} }