From: Lennart Poettering Date: Fri, 23 Feb 2018 11:31:30 +0000 (+0100) Subject: systemctl: fix indentation in output of "systemcl status" if there are multiple drop... X-Git-Tag: v239~415^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb2c3192dc6f4f4d86023f9379e1fb964a3c6c8c;p=platform%2Fupstream%2Fsystemd.git systemctl: fix indentation in output of "systemcl status" if there are multiple drop-in dirs We were a few whitespace off. Let's fix that. --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 079d571..388eee4 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -4021,8 +4021,9 @@ static void print_status_info( char ** dropin; STRV_FOREACH(dropin, i->dropin_paths) { - if (! dir || last) { - printf(dir ? " " : " Drop-In: "); + if (!dir || last) { + printf(dir ? " " : + " Drop-In: "); dir = mfree(dir); @@ -4032,7 +4033,8 @@ static void print_status_info( return; } - printf("%s\n %s", dir, + printf("%s\n" + " %s", dir, special_glyph(TREE_RIGHT)); }