summaryrefslogtreecommitdiff
path: root/src/libtipidee/tipidee_log_exit.c
blob: 7d7b3e0577cfccab1e67233de264048f50a19586 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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) ;
}