1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-14 20:10:18 +03:00

Make errors in 'diff' / 'dump' easier to spot and parse.

This commit is contained in:
mikeller 2019-02-22 02:11:13 +13:00
parent e053965489
commit bad72c884a

View file

@ -392,7 +392,7 @@ static void cliPrintLinef(const char *format, ...)
static void cliPrintErrorLinef(const char *format, ...) static void cliPrintErrorLinef(const char *format, ...)
{ {
cliPrint("###"); cliPrint("###ERROR: ");
va_list va; va_list va;
va_start(va, format); va_start(va, format);
cliPrintfva(format, va); cliPrintfva(format, va);
@ -402,7 +402,7 @@ static void cliPrintErrorLinef(const char *format, ...)
static void cliPrintCorruptMessage(int value) static void cliPrintCorruptMessage(int value)
{ {
cliPrintf("%d ###CORRUPTED CONFIG###", value); cliPrintf("%d ###ERROR: CORRUPTED CONFIG###", value);
} }
static void getMinMax(const clivalue_t *var, int *min, int *max) static void getMinMax(const clivalue_t *var, int *min, int *max)