Commit 4a3245a1 authored by Radim Krčmář's avatar Radim Krčmář
Browse files

libcflat: add format checking to report()



report() is a wrapper for printf(), but the compiler was not aware.

Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
parent 2ce7a6c7
...@@ -96,14 +96,20 @@ extern int vsnprintf(char *buf, int size, const char *fmt, va_list va) ...@@ -96,14 +96,20 @@ extern int vsnprintf(char *buf, int size, const char *fmt, va_list va)
extern int vprintf(const char *fmt, va_list va) extern int vprintf(const char *fmt, va_list va)
__attribute__((format(printf, 1, 0))); __attribute__((format(printf, 1, 0)));
void report_prefix_pushf(const char *prefix_fmt, ...); void report_prefix_pushf(const char *prefix_fmt, ...)
__attribute__((format(printf, 1, 2)));
extern void report_prefix_push(const char *prefix); extern void report_prefix_push(const char *prefix);
extern void report_prefix_pop(void); extern void report_prefix_pop(void);
extern void report(const char *msg_fmt, bool pass, ...); extern void report(const char *msg_fmt, bool pass, ...)
extern void report_xfail(const char *msg_fmt, bool xfail, bool pass, ...); __attribute__((format(printf, 1, 3)));
extern void report_abort(const char *msg_fmt, ...); extern void report_xfail(const char *msg_fmt, bool xfail, bool pass, ...)
extern void report_skip(const char *msg_fmt, ...); __attribute__((format(printf, 1, 4)));
extern void report_info(const char *msg_fmt, ...); extern void report_abort(const char *msg_fmt, ...)
__attribute__((format(printf, 1, 2)));
extern void report_skip(const char *msg_fmt, ...)
__attribute__((format(printf, 1, 2)));
extern void report_info(const char *msg_fmt, ...)
__attribute__((format(printf, 1, 2)));
extern void report_pass(void); extern void report_pass(void);
extern int report_summary(void); extern int report_summary(void);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment