Go to the source code of this file.
|
#define | HPD_LOG_MODULE "hpd" |
|
#define | LOG_DEBUG(FMT, ...) log_logf(HPD_LOG_MODULE, HPD_L_DEBUG, __FILE__, __LINE__, (FMT), ##__VA_ARGS__) |
|
#define | LOG_ERROR(FMT, ...) log_logf(HPD_LOG_MODULE, HPD_L_ERROR, __FILE__, __LINE__, (FMT), ##__VA_ARGS__) |
|
#define | LOG_INFO(FMT, ...) log_logf(HPD_LOG_MODULE, HPD_L_INFO , __FILE__, __LINE__, (FMT), ##__VA_ARGS__) |
|
#define | LOG_RETURN(E, FMT, ...) do { LOG_DEBUG((FMT), ##__VA_ARGS__); return (E); } while(0) |
|
#define | LOG_RETURN_E_ALLOC() LOG_RETURN(HPD_E_ALLOC, "Unable to allocate memory.") |
|
#define | LOG_RETURN_E_NULL() LOG_RETURN(HPD_E_NULL, "Unexpected null pointer.") |
|
#define | LOG_RETURN_HPD_STOPPED() LOG_RETURN(HPD_E_STATE, "Cannot perform %s() while hpd is stopped.", __func__) |
|
#define | LOG_WARN(FMT, ...) log_logf(HPD_LOG_MODULE, HPD_L_WARN , __FILE__, __LINE__, (FMT), ##__VA_ARGS__) |
|
|
hpd_error_t | log_logf (const char *module, hpd_log_level_t level, const char *file, int line, const char *fmt,...) |
|
hpd_error_t | log_vlogf (const char *module, hpd_log_level_t level, const char *file, int line, const char *fmt, va_list vp) |
|
#define HPD_LOG_MODULE "hpd" |
Definition at line 38 of file log.h.
Definition at line 46 of file log.h.
Definition at line 43 of file log.h.
Definition at line 45 of file log.h.
#define LOG_RETURN |
( |
|
E, |
|
|
|
FMT, |
|
|
|
... |
|
) |
| do { LOG_DEBUG((FMT), ##__VA_ARGS__); return (E); } while(0) |
Definition at line 48 of file log.h.
Definition at line 51 of file log.h.
Definition at line 50 of file log.h.
Definition at line 53 of file log.h.
Definition at line 44 of file log.h.
Definition at line 32 of file log.c.
Definition at line 42 of file log.c.