AP_Arming: mark check_failed as taking a format string

This commit is contained in:
Peter Barker 2019-08-05 11:39:00 +10:00 committed by Peter Barker
parent cee7cce1ca
commit 95b8c12454

View File

@ -139,7 +139,7 @@ protected:
// returns a mavlink severity which should be used if a specific check fails // returns a mavlink severity which should be used if a specific check fails
MAV_SEVERITY check_severity(const enum AP_Arming::ArmingChecks check) const; MAV_SEVERITY check_severity(const enum AP_Arming::ArmingChecks check) const;
// handle the case where a check fails // handle the case where a check fails
void check_failed(const enum AP_Arming::ArmingChecks check, bool report, const char *fmt, ...) const; void check_failed(const enum AP_Arming::ArmingChecks check, bool report, const char *fmt, ...) const FMT_PRINTF(4, 5);
void Log_Write_Arm_Disarm(); void Log_Write_Arm_Disarm();