[systemd-devel] [PATCH] loginctl: fix output of type with class

Mantas Mikulėnas grawity at gmail.com
Sat Dec 21 21:23:08 PST 2013


On Sun, Dec 22, 2013 at 4:00 AM, Zbigniew Jędrzejewski-Szmek
<zbyszek at in.waw.pl> wrote:
> On Sun, Dec 22, 2013 at 02:54:05AM +0200, Mantas Mikulėnas wrote:
>> ---
>>  src/login/loginctl.c | 4 +++-
>>  1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/src/login/loginctl.c b/src/login/loginctl.c
>> index 36c65bc..5f57f62 100644
>> --- a/src/login/loginctl.c
>> +++ b/src/login/loginctl.c
>> @@ -364,10 +364,12 @@ static void print_session_status_info(SessionStatusInfo *i) {
>>
>>                  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);
>>
> Can you rebase (if this is still an issue)?
>
> Zbyszek

Ouch, I thought I had done that for both branches. Resent.

-- 
Mantas Mikulėnas <grawity at gmail.com>


More information about the systemd-devel mailing list