AP_Param: correct compilation when debugging enabled

Correct passing through ov varargs from macro
This commit is contained in:
Peter Barker 2023-01-06 16:12:24 +11:00 committed by Andrew Tridgell
parent 63efa7e480
commit 37b54a7c9c

View File

@ -49,7 +49,7 @@ AP_Param *AP_Param::_singleton;
#define ENABLE_DEBUG 0
#if ENABLE_DEBUG
# define FATAL(fmt, args ...) AP_HAL::panic(fmt, args);
# define FATAL(fmt, args ...) AP_HAL::panic(fmt, ## args);
# define Debug(fmt, args ...) do {::printf("%s:%d: " fmt "\n", __FUNCTION__, __LINE__, ## args); } while(0)
#else
# define FATAL(fmt, args ...) AP_HAL::panic("Bad parameter table");