diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-08-27 03:20:03 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-09-01 22:45:09 +0200 |
commit | 42efe5be1ddac120897d77b8735fca5cda2ac9e5 (patch) | |
tree | 58f6b20c2eae11a51b1cba8743cbfa61e20d3a40 /src/journal | |
parent | log: protect errno from log_syntax_invalid_utf8_internal() (diff) | |
download | systemd-42efe5be1ddac120897d77b8735fca5cda2ac9e5.tar.xz systemd-42efe5be1ddac120897d77b8735fca5cda2ac9e5.zip |
tree-wide: drop msg argument for DEFINE_CONFIG_PARSE() macro and friends
This makes the macros use log_syntax_parse_error(), hopefully which provides
more informative log message in general, and reduces binary size.
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journald-server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index 09b80881b3..66f09e4945 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -2953,7 +2953,7 @@ static const char* const storage_table[_STORAGE_MAX] = { }; DEFINE_STRING_TABLE_LOOKUP(storage, Storage); -DEFINE_CONFIG_PARSE_ENUM(config_parse_storage, storage, Storage, "Failed to parse storage setting"); +DEFINE_CONFIG_PARSE_ENUM(config_parse_storage, storage, Storage); static const char* const split_mode_table[_SPLIT_MAX] = { [SPLIT_LOGIN] = "login", @@ -2962,7 +2962,7 @@ static const char* const split_mode_table[_SPLIT_MAX] = { }; DEFINE_STRING_TABLE_LOOKUP(split_mode, SplitMode); -DEFINE_CONFIG_PARSE_ENUM(config_parse_split_mode, split_mode, SplitMode, "Failed to parse split mode setting"); +DEFINE_CONFIG_PARSE_ENUM(config_parse_split_mode, split_mode, SplitMode); int config_parse_line_max( const char* unit, |