diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index 84d0c16996e..b74daefa2bf 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -839,22 +839,26 @@ int config_parse_warn_compat( const char *rvalue, void *data, void *userdata) { + Disabled reason = ltype; switch(reason) { + case DISABLED_CONFIGURATION: log_syntax(unit, LOG_DEBUG, filename, line, 0, "Support for option %s= has been disabled at compile time and it is ignored", lvalue); break; + case DISABLED_LEGACY: log_syntax(unit, LOG_INFO, filename, line, 0, "Support for option %s= has been removed and it is ignored", lvalue); break; + case DISABLED_EXPERIMENTAL: log_syntax(unit, LOG_INFO, filename, line, 0, "Support for option %s= has not yet been enabled and it is ignored", lvalue); break; - }; + } return 0; }