diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-12-30 21:49:10 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-03-03 03:08:31 +0900 |
commit | 312dff17607db3de5959fd6cf84506ef9cdfd9a8 (patch) | |
tree | f4e9c217a67d03b90f8ab044619bd001c806c9ad /src/boot | |
parent | 7e40042b55c245ffd449e764edfc4dd7c0aa0094 (diff) | |
download | systemd-312dff17607db3de5959fd6cf84506ef9cdfd9a8.tar.gz |
util: add helpers for generating colored check mark glyphs from bools
Diffstat (limited to 'src/boot')
-rw-r--r-- | src/boot/bootctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index cccd834cc8..9964dda1fc 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -1153,8 +1153,8 @@ static void read_loader_efi_var(const char *name, char **var) { static void print_yes_no_line(bool first, bool good, const char *name) { printf("%s%s%s%s %s\n", first ? " Features: " : " ", - good ? ansi_highlight_green() : ansi_highlight_red(), - good ? special_glyph(SPECIAL_GLYPH_CHECK_MARK) : special_glyph(SPECIAL_GLYPH_CROSS_MARK), + ansi_highlight_green_red(good), + special_glyph_check_mark(good), ansi_normal(), name); } |