summaryrefslogtreecommitdiffstats
path: root/diag.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-01-02 17:00:40 -0500
committerTavian Barnes <tavianator@tavianator.com>2019-01-02 17:01:06 -0500
commit29a49f5d150911428a35943be8d9fc226865eb1b (patch)
tree35ca4aa4fd793e6398c7943cee0b1732f29419c0 /diag.h
parent7fc7e98df2ea9c34dd1e0cb188554bed933a16df (diff)
downloadbfs-29a49f5d150911428a35943be8d9fc226865eb1b.tar.xz
color: Check format strings + args for cfprintf()
%{cc} is now ${cc} to avoid warnings about an unrecognized format specifier, and %P and %L are now %pP and %pL to make them look more like standard format strings.
Diffstat (limited to 'diag.h')
-rw-r--r--diag.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/diag.h b/diag.h
index 24ee92a..e84bbc1 100644
--- a/diag.h
+++ b/diag.h
@@ -18,16 +18,19 @@
#define BFS_DIAG_H
#include "cmdline.h"
+#include "util.h"
#include <stdarg.h>
/**
* Shorthand for printing error messages.
*/
+BFS_FORMATTER(2, 3)
void bfs_error(const struct cmdline *cmdline, const char *format, ...);
/**
* Shorthand for printing warning messages.
*/
+BFS_FORMATTER(2, 3)
void bfs_warning(const struct cmdline *cmdline, const char *format, ...);
/**