declared mio_logbfmtv() and mio_logufmtv() in mio.h

This commit is contained in:
hyung-hwan 2021-07-19 01:11:09 +00:00
parent 487a0d19a0
commit d1d7929830
2 changed files with 16 additions and 6 deletions

View File

@ -1324,10 +1324,26 @@ MIO_EXPORT mio_ooi_t mio_logufmt (
...
);
MIO_EXPORT mio_ooi_t mio_logbfmtv (
mio_t* mio,
mio_bitmask_t mask,
const mio_bch_t* fmt,
va_list ap
);
MIO_EXPORT mio_ooi_t mio_logufmtv (
mio_t* mio,
mio_bitmask_t mask,
const mio_uch_t* fmt,
va_list ap
);
#if defined(MIO_OOCH_IS_UCH)
# define mio_logoofmt mio_logufmt
# define mio_logoofmtv mio_logufmtv
#else
# define mio_logoofmt mio_logbfmt
# define mio_logoofmtv mio_logbfmtv
#endif
/* =========================================================================

View File

@ -339,12 +339,6 @@ int mio_sys_initlog (mio_t* mio)
if (isatty(log->fd)) log->fd_flag |= LOGFD_TTY;
#endif
/*
mio_bitmask_t logmask;
logmask = MIO_LOG_ALL_TYPES | MIO_LOG_ALL_LEVELS;
mio_setoption (mio, MIO_LOG_MASK, &logmask);
*/
pthread_mutex_init (&log->mtx, MIO_NULL);
return 0;
}