summaryrefslogtreecommitdiff
path: root/src/libtipidee/tipidee_log_exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtipidee/tipidee_log_exit.c')
-rw-r--r--src/libtipidee/tipidee_log_exit.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libtipidee/tipidee_log_exit.c b/src/libtipidee/tipidee_log_exit.c
new file mode 100644
index 0000000..7d7b3e0
--- /dev/null
+++ b/src/libtipidee/tipidee_log_exit.c
@@ -0,0 +1,14 @@
+/* ISC license. */
+
+#include <skalibs/types.h>
+#include <skalibs/strerr.h>
+
+#include <tipidee/log.h>
+
+void tipidee_log_exit (uint32_t v, unsigned int e)
+{
+ char fmt[UINT_FMT] ;
+ if (!(v & TIPIDEE_LOG_START)) return ;
+ fmt[uint_fmt(fmt, e)] = 0 ;
+ strerr_warni2x("exit ", fmt) ;
+}