main: client: factor out some common code for "--log-level" option

This commit is contained in:
Craig Barnes 2021-02-11 11:08:18 +00:00
parent 7698077331
commit 5437321f97
5 changed files with 61 additions and 58 deletions

3
log.h
View file

@ -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(...) \