svn commit: r339783 - head/usr.sbin/ngctl
Devin Teske
dteske at FreeBSD.org
Fri Oct 26 19:16:18 UTC 2018
Author: dteske
Date: Fri Oct 26 19:16:17 2018
New Revision: 339783
URL: https://svnweb.freebsd.org/changeset/base/339783
Log:
Add blank line after each item in "ngctl ls -l"
The output of "ngctl ls -l" is hard to read. To make it easier, add a blank
line after each listed item much how traditional "ls -l" does when listing
the contents of multiple directories.
Sponsored by: Smule, Inc.
Modified:
head/usr.sbin/ngctl/list.c
Modified: head/usr.sbin/ngctl/list.c
==============================================================================
--- head/usr.sbin/ngctl/list.c Fri Oct 26 19:03:30 2018 (r339782)
+++ head/usr.sbin/ngctl/list.c Fri Oct 26 19:16:17 2018 (r339783)
@@ -125,6 +125,8 @@ ListCmd(int ac, char **av)
break;
ninfo++;
nlist->numnames--;
+ if (nlist->numnames > 0)
+ printf("\n");
}
} else {
while (nlist->numnames > 0) {
More information about the svn-src-all
mailing list