diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2020-10-04 13:46:35 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2020-10-05 15:39:22 -0400 |
commit | 98a3dd364739136329fe2b8f9cdeecf776fb17c9 (patch) | |
tree | d571ed17227849679b397e0cfd6c95a51c41c524 /diag.c | |
parent | b3312002a5d96cd486156a711d3c1861c150b7c6 (diff) | |
download | bfs-98a3dd364739136329fe2b8f9cdeecf776fb17c9.tar.xz |
diag: New bfs_perror() function
Diffstat (limited to 'diag.c')
-rw-r--r-- | diag.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |