diff options
author | Maria Matejka <mq@ucw.cz> | 2023-06-16 22:11:03 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2023-09-12 15:58:07 +0200 |
commit | 6f798683a34aa87f5e4f590be4c90253a1135e08 (patch) | |
tree | 5df63ea8e08f26d16f2a0b6ffbe722ad8e603195 /conf | |
parent | 062ff656830f89bd3bca5b39a86c4d41b535a7bf (diff) |
Conf: config warnings show the file position
Diffstat (limited to 'conf')
-rw-r--r-- | conf/conf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/conf.h b/conf/conf.h index f91d7039..b7c97ce5 100644 --- a/conf/conf.h +++ b/conf/conf.h @@ -77,6 +77,7 @@ int config_status(void); btime config_timer_status(void); void config_init(void); void cf_error(const char *msg, ...) NORET; +#define cf_warn(msg, args...) log(L_WARN "%s:%d:%d: " msg, ifs->file_name, ifs->lino, ifs->chno - ifs->toklen + 1, ##args) void config_add_obstacle(struct config *); void config_del_obstacle(struct config *); void order_shutdown(int gr); |