mirror of
https://github.com/CTCaer/hekate.git
synced 2024-12-25 06:18:11 +00:00
bdk: utils: Set format attribute for s_printf
This allows the custom sprintf to be recognized as printf by gcc and effectively doing format checking. NOTE: 64bit formatting is not supported for now, even if gcc asks to be set.
This commit is contained in:
parent
7df76bff4a
commit
b6384d5da5
@ -21,7 +21,7 @@
|
||||
|
||||
#include <utils/types.h>
|
||||
|
||||
void s_printf(char *out_buf, const char *fmt, ...);
|
||||
void s_printf(char *out_buf, const char *fmt, ...) __attribute__((format(printf, 2, 3)));
|
||||
void s_vprintf(char *out_buf, const char *fmt, va_list ap);
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user