dns_conf: add error logs when config is invalid.

This commit is contained in:
Nick Peng
2023-11-14 22:38:33 +08:00
parent eb9fc6c13d
commit d54d7cf80a
3 changed files with 36 additions and 12 deletions

View File

@@ -122,9 +122,9 @@ struct config_enum {
.data = value, .min = min_value, .max = max_value \
} \
}
#define CONF_SSIZE(key, value, min_value, max_value) \
#define CONF_SSIZE(key, value, min_value, max_value) \
{ \
key, conf_ssize, &(struct config_item_ssize) \
key, conf_ssize, &(struct config_item_ssize) \
{ \
.data = value, .min = min_value, .max = max_value \
} \