mirror of
https://github.com/troglobit/finit.git
synced 2026-10-26 12:14:37 +00:00
initctl: Align STATUS output from cond show and dump
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
fd090a6785
commit
3f150901fe
1 file changed
+2
-2
+2
-2
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user