mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 07:13:56 -04:00
AP_Param: correct compilation when debugging enabled
Correct passing through ov varargs from macro
This commit is contained in:
parent
63efa7e480
commit
37b54a7c9c
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user