Skip to content

Commit fdba32d

Browse files
authored
procstat: Fix off-by-one in compartments formatting
1 parent 8dacf1e commit fdba32d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: usr.bin/procstat/procstat_compartments.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ procstat_compartments(struct procstat *procstat, struct kinfo_proc *kipp)
5555
xo_emit("{k:process_id/%5d/%d}", kipp->ki_pid);
5656
xo_emit(" {:command/%-19s/%s}", kipp->ki_comm);
5757
xo_emit(" {:cid/%4d/%zu}", kcccp[i].kccc_id);
58-
xo_emit(" {:flag/%-5s/%s%s}", kcccp[i].kccc_dlopened ?
58+
xo_emit(" {:flag/%-4s/%s%s}", kcccp[i].kccc_dlopened ?
5959
(kcccp[i].kccc_dlopened_explicitly ? "D" : "d") : "-");
6060
xo_emit(" {:cname/%-40s/%s}", kcccp[i].kccc_name);
6161
xo_emit("\n");

0 commit comments

Comments
 (0)