initctl: Align STATUS output from cond show and dump

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-10-16 11:26:43 +02:00
1 parent fd090a6785
commit 3f150901fe
1 file changed
+2 -2
+2 -2
View File
@@ -281,14 +281,14 @@ static int dump_one_cond(const char *fpath, const struct stat *sb, int tflag, st
return 0; return 0;
len = strlen(_PATH_COND); len = strlen(_PATH_COND);
printf("%-30s %s\n", &fpath[len], condstr(cond_get_path(fpath))); printf("%-28s %s\n", &fpath[len], condstr(cond_get_path(fpath)));
return 0; return 0;
} }
static int do_cond_dump(char *arg) static int do_cond_dump(char *arg)
{ {
printheader(NULL, "CONDITION STATUS", 0); printheader(NULL, "CONDITION STATUS", 0);
if (nftw(_PATH_COND, dump_one_cond, 20, 0) == -1) { if (nftw(_PATH_COND, dump_one_cond, 20, 0) == -1) {
warnx("Failed parsing %s", _PATH_COND); warnx("Failed parsing %s", _PATH_COND);