diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-10-28 19:29:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-28 19:29:03 +0100 |
commit | feb9ccb56eb8968356a435ce3f59fcf35e4bcb65 (patch) | |
tree | 42dd15c82982b156628f7e143e63bddae568c460 /src/shared/bootspec.c | |
parent | Merge pull request #34806 from ryantimwilson/protect-control-groups (diff) | |
parent | sd-json,tree-wide: add sd_json_format_enabled() and use it everwhere (diff) | |
download | systemd-feb9ccb56eb8968356a435ce3f59fcf35e4bcb65.tar.xz systemd-feb9ccb56eb8968356a435ce3f59fcf35e4bcb65.zip |
Merge pull request #34633 from keszybz/sd-json-enum-formatting
Add sd_json_format_enabled() helper
Diffstat (limited to 'src/shared/bootspec.c')
-rw-r--r-- | src/shared/bootspec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index 87aa11ccdf..4c0195a41e 100644 --- a/src/shared/bootspec.c +++ b/src/shared/bootspec.c @@ -1936,7 +1936,7 @@ int show_boot_entries(const BootConfig *config, sd_json_format_flags_t json_form assert(config); - if (!FLAGS_SET(json_format, SD_JSON_FORMAT_OFF)) { + if (sd_json_format_enabled(json_format)) { _cleanup_(sd_json_variant_unrefp) sd_json_variant *array = NULL; for (size_t i = 0; i < config->n_entries; i++) { |