diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-01 22:35:00 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-01 22:35:00 +0200 |
commit | 350353d2c1282b2802bba83f49a3508b3beeb24a (patch) | |
tree | 7d0ad5411019d25cd4ad15c32b9766e4c6d35184 /src/fastd.h | |
parent | bd781685508ae5096f864ba969824e299c7f327c (diff) | |
download | fastd-350353d2c1282b2802bba83f49a3508b3beeb24a.tar fastd-350353d2c1282b2802bba83f49a3508b3beeb24a.zip |
Add verbose log level, change some log messages
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fastd.h b/src/fastd.h index 8a14f11..8e63884 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -151,12 +151,14 @@ static inline int fastd_rand(fastd_context *ctx, int min, int max) { #define is_error(ctx) ((ctx)->conf == NULL || LOG_ERROR <= (ctx)->conf->loglevel) #define is_warn(ctx) ((ctx)->conf == NULL || LOG_WARN <= (ctx)->conf->loglevel) #define is_info(ctx) ((ctx)->conf == NULL || LOG_INFO <= (ctx)->conf->loglevel) +#define is_verbose(ctx) ((ctx)->conf == NULL || LOG_VERBOSE <= (ctx)->conf->loglevel) #define is_debug(ctx) ((ctx)->conf == NULL || LOG_DEBUG <= (ctx)->conf->loglevel) #define pr_fatal(ctx, args...) pr_log(ctx, LOG_FATAL, "Fatal: ", args) #define pr_error(ctx, args...) pr_log(ctx, LOG_ERROR, "Error: ", args) #define pr_warn(ctx, args...) pr_log(ctx, LOG_WARN, "Warning: ", args) -#define pr_info(ctx, args...) pr_log(ctx, LOG_INFO, "", args) +#define pr_info(ctx, args...) pr_log(ctx, LOG_INFO, "Info: ", args) +#define pr_verbose(ctx, args...) pr_log(ctx, LOG_INFO, "Verbose: ", args) #define pr_debug(ctx, args...) pr_log(ctx, LOG_DEBUG, "DEBUG: ", args) #define warn_errno(ctx, message) pr_warn(ctx, "%s: %s", message, strerror(errno)) |