aboutsummaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
authorGravatar Matthew Wozniak <me@woz.blue> 2024-11-03 00:20:45 -0400
committerGravatar Matthew Wozniak <me@woz.blue> 2024-11-03 00:22:05 -0400
commit492aac484b5c65e5df21a7d1b1cf781063efef50 (patch)
tree01055654432f784c6d709690f0d6b7e175c3262d /log.h
parentd00096fe2ea3dd64cff9878879c077f23a783e4a (diff)
downloadrt-492aac484b5c65e5df21a7d1b1cf781063efef50.tar.gz
rt-492aac484b5c65e5df21a7d1b1cf781063efef50.zip
purge CR from this project
Diffstat (limited to 'log.h')
-rw-r--r--log.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/log.h b/log.h
index f0655b2..ac72474 100644
--- a/log.h
+++ b/log.h
@@ -1,25 +1,25 @@
-// SPDX-License-Identifier: ISC
-// SPDX-FileCopyrightText: 2024 Matthew Wozniak <me@woz.blue>
-
-#include <stdio.h>
-
-#define die(fmt, ...) {\
- fprintf(stderr, "err: %s: " fmt "\n", __func__ __VA_OPT__(,) __VA_ARGS__); \
- exit(1); \
-}
-
-#define bail(fmt, ...) {\
- fprintf(stderr, "err: %s: " fmt "\n", __func__ __VA_OPT__(,) __VA_ARGS__); \
- return false; \
-}
-
-#define warn(fmt, ...) \
- fprintf(stderr, "warn: %s: " fmt "\n", __func__ __VA_OPT__(,) __VA_ARGS__)
-
-#define info(fmt, ...) \
- fprintf(stderr, "info: %s: " fmt "\n", __func__ __VA_OPT__(,) __VA_ARGS__)
-
-#define debug(fmt, ...) \
- fprintf(stderr, "dbg: %s: " fmt "\n", __func__ __VA_OPT__(,) __VA_ARGS__)
-
-// vi: sw=4 ts=4 noet tw=80 cc=80
+// SPDX-License-Identifier: ISC
+// SPDX-FileCopyrightText: 2024 Matthew Wozniak <me@woz.blue>
+
+#include <stdio.h>
+
+#define die(fmt, ...) {\
+ fprintf(stderr, "err: %s: " fmt "\n", __func__ __VA_OPT__(,) __VA_ARGS__); \
+ exit(1); \
+}
+
+#define bail(fmt, ...) {\
+ fprintf(stderr, "err: %s: " fmt "\n", __func__ __VA_OPT__(,) __VA_ARGS__); \
+ return false; \
+}
+
+#define warn(fmt, ...) \
+ fprintf(stderr, "warn: %s: " fmt "\n", __func__ __VA_OPT__(,) __VA_ARGS__)
+
+#define info(fmt, ...) \
+ fprintf(stderr, "info: %s: " fmt "\n", __func__ __VA_OPT__(,) __VA_ARGS__)
+
+#define debug(fmt, ...) \
+ fprintf(stderr, "dbg: %s: " fmt "\n", __func__ __VA_OPT__(,) __VA_ARGS__)
+
+// vi: sw=4 ts=4 noet tw=80 cc=80