mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
main: client: factor out some common code for "--log-level" option
This commit is contained in:
parent
7698077331
commit
5437321f97
5 changed files with 61 additions and 58 deletions
3
log.h
3
log.h
|
|
@ -23,6 +23,9 @@ void log_errno_provided(
|
|||
const char *file, int lineno, int _errno,
|
||||
const char *fmt, ...) PRINTF(6);
|
||||
|
||||
int log_level_from_string(const char *str);
|
||||
const char *log_level_string_hint(void);
|
||||
|
||||
#define LOG_ERR(...) \
|
||||
log_msg(LOG_CLASS_ERROR, LOG_MODULE, __FILE__, __LINE__, __VA_ARGS__)
|
||||
#define LOG_ERRNO(...) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue