]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect: make image name bold
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Nov 2022 21:51:42 +0000 (22:51 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Nov 2022 15:00:59 +0000 (16:00 +0100)
src/dissect/dissect.c

index 2512cd0f0b934d142d9d99f711221bbaea9c5745..1ee4119d4f4fa5ae64c9d68ef9e53e0227146fe4 100644 (file)
@@ -568,7 +568,7 @@ static int action_dissect(DissectedImage *m, LoopDevice *d) {
                 pager_open(arg_pager_flags);
 
         if (arg_json_format_flags & JSON_FORMAT_OFF)
-                printf("      Name: %s\n", bn);
+                printf("      Name: %s%s%s\n", ansi_highlight(), bn, ansi_normal());
 
         if (ioctl(d->fd, BLKGETSIZE64, &size) < 0)
                 log_debug_errno(errno, "Failed to query size of loopback device: %m");