summaryrefslogtreecommitdiffstats
path: root/diag.c
diff options
context:
space:
mode:
Diffstat (limited to 'diag.c')
-rw-r--r--diag.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/diag.c b/diag.c
index 308b05d..66609e1 100644
--- a/diag.c
+++ b/diag.c
@@ -24,6 +24,10 @@
#include <stdlib.h>
#include <string.h>
+void bfs_perror(const struct bfs_ctx *ctx, const char *str) {
+ bfs_error(ctx, "%s: %m.\n", str);
+}
+
void bfs_error(const struct bfs_ctx *ctx, const char *format, ...) {
va_list args;
va_start(args, format);