1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-11 05:17:44 +03:00

loginctl: fix output of type with class

This commit is contained in:
Mantas Mikulėnas 2013-12-22 07:22:46 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent d4fffc4b8b
commit 91d53e2b89

View File

@ -453,10 +453,12 @@ static int print_session_status_info(sd_bus *bus, const char *path, bool *new_li
printf("\n");
} else if (i.type) {
printf("\t Type: %s\n", i.type);
printf("\t Type: %s", i.type);
if (i.class)
printf("; class %s", i.class);
printf("\n");
} else if (i.class)
printf("\t Class: %s\n", i.class);