From: Thomas Hindoe Paaboel Andersen Date: Fri, 2 Jan 2015 19:29:04 +0000 (+0100) Subject: machinectl: Check type instead of path before printing the type X-Git-Tag: v219~716 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=9a14fb6285bdb089d4fc195410de3362cb4f586f;p=elogind.git machinectl: Check type instead of path before printing the type Looks like a typo when introduced in fefdc04b38725457a91651218feb7000f6ccc1f4 --- diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index b1d170787..37f6027ad 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -679,7 +679,7 @@ static void print_image_status_info(sd_bus *bus, ImageStatusInfo *i) { putchar('\n'); } - if (i->path) + if (i->type) printf("\t Type: %s\n", i->type); if (i->path)