summaryrefslogtreecommitdiffstats
path: root/src/diag.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-12-08 16:45:06 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-12-08 16:46:44 -0500
commit0cc598f1628167599131756e909630dc36d33610 (patch)
tree5dd168cc9ba7c34592fa6b020f58ee59a96eabb2 /src/diag.h
parentededa3ed1cf0d02fcdb9a42d44d46a84fec1c58e (diff)
downloadbfs-0cc598f1628167599131756e909630dc36d33610.tar.xz
Add BFS_FORMATTER() to vprintf()-type functions too
Diffstat (limited to 'src/diag.h')
-rw-r--r--src/diag.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/diag.h b/src/diag.h
index 56ad39b..8d0b19f 100644
--- a/src/diag.h
+++ b/src/diag.h
@@ -58,16 +58,19 @@ bool bfs_debug(const struct bfs_ctx *ctx, enum debug_flags flag, const char *for
/**
* bfs_error() variant that takes a va_list.
*/
+BFS_FORMATTER(2, 0)
void bfs_verror(const struct bfs_ctx *ctx, const char *format, va_list args);
/**
* bfs_warning() variant that takes a va_list.
*/
+BFS_FORMATTER(2, 0)
bool bfs_vwarning(const struct bfs_ctx *ctx, const char *format, va_list args);
/**
* bfs_debug() variant that takes a va_list.
*/
+BFS_FORMATTER(3, 0)
bool bfs_vdebug(const struct bfs_ctx *ctx, enum debug_flags flag, const char *format, va_list args);
/**