You copied the Doc URL to your clipboard.

__attribute__((format_arg(string-index))) function attribute

This function attribute specifies that a user-defined function modifies format strings. Use of this attribute enables calls to functions like printf(), scanf(), strftime() or strfmon(), whose operands are a call to the user-defined function, to be checked for errors.


This function attribute is a GNU compiler extension that is supported by the ARM compiler.