summaryrefslogtreecommitdiff
path: root/src/common/shibari_log_exit.c
blob: 8e383c6bd12cd7fced29540bab3ed9b0a029ab2f (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 <shibari/log.h>

void shibari_log_exit (uint32_t v, int e)
{
  char fmt[UINT_FMT] ;
  if (v < 2) return ;
  fmt[uint_fmt(fmt, (unsigned int)e)] = 0 ;
  strerr_warni2x("exit ", fmt) ;
}