aboutsummaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
authorGravatar Matthew Wozniak <me@woz.blue> 2024-10-27 23:28:51 -0400
committerGravatar Matthew Wozniak <me@woz.blue> 2024-10-27 23:28:51 -0400
commitfb95177298bb92098b61f09b9f66c1fce32f2f02 (patch)
treec73b45c91f145dca7d055a1cde1f4efaa6db8da6 /log.h
parent36b6d84ee4b520bdf43891ea86df03cf660cb464 (diff)
downloadrt-fb95177298bb92098b61f09b9f66c1fce32f2f02.tar.gz
rt-fb95177298bb92098b61f09b9f66c1fce32f2f02.zip
add hooking and IVEngineServer interface
Diffstat (limited to 'log.h')
-rw-r--r--log.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/log.h b/log.h
index 88254bc..61bf8a9 100644
--- a/log.h
+++ b/log.h
@@ -5,14 +5,14 @@
#include <stdlib.h>
#define die(fmt, ...) {\
- fprintf(stderr, "err: " __FILE__ ": " fmt "\n", __VA_ARGS__); \
+ fprintf(stderr, "err: %s: " fmt "\n", __func__ __VA_OPT__(,) __VA_ARGS__); \
exit(1); \
}
#define warn(fmt, ...) \
- fprintf(stderr, "warn: " __FILE__ ": " fmt "\n", __VA_ARGS__)
+ fprintf(stderr, "warn: %s: " fmt "\n", __func__ __VA_OPT__(,) __VA_ARGS__)
#define info(fmt, ...) \
- fprintf(stderr, "info: " __FILE__ ": " fmt "\n", __VA_ARGS__)
+ fprintf(stderr, "info: %s: " fmt "\n", __func__ __VA_OPT__(,) __VA_ARGS__)
// vi: sw=4 ts=4 noet tw=80 cc=80