diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-11-23 14:08:01 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-11-23 22:40:15 +0100 |
commit | ae54abe7fe239f1606a4becc2a41f2d7530371a2 (patch) | |
tree | 8ebbba033f16dcecc63a669ce5b69e489bbe9403 /src/test/test-gpt.c | |
parent | 3131c24bd61ee25a63494594e1cfb02ae5382e58 (diff) | |
download | systemd-ae54abe7fe239f1606a4becc2a41f2d7530371a2.tar.gz |
bootctl: use new red/green check/cross mark helpers at two places
Diffstat (limited to 'src/test/test-gpt.c')
-rw-r--r-- | src/test/test-gpt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/test-gpt.c b/src/test/test-gpt.c index 9b0eb57373..7ee044ba50 100644 --- a/src/test/test-gpt.c +++ b/src/test/test-gpt.c @@ -4,6 +4,7 @@ #include "glyph-util.h" #include "gpt.h" #include "log.h" +#include "pretty-print.h" #include "strv.h" #include "terminal-util.h" #include "tests.h" @@ -32,11 +33,11 @@ static void test_gpt_types_against_architectures(void) { r = gpt_partition_type_uuid_from_string(joined, &id); if (r < 0) { - printf("%s%s%s %s\n", ansi_highlight_red(), special_glyph(SPECIAL_GLYPH_CROSS_MARK), ansi_normal(), joined); + printf("%s %s\n", RED_CROSS_MARK(), joined); continue; } - printf("%s%s%s %s\n", ansi_highlight_green(), special_glyph(SPECIAL_GLYPH_CHECK_MARK), ansi_normal(), joined); + printf("%s %s\n", GREEN_CHECK_MARK(), joined); if (streq(prefix, "root-") && streq(suffix, "")) assert_se(gpt_partition_type_is_root(id)); |