Fix couple issues in ctlstat header printing.

MFC after:	1 week
This commit is contained in:
Alexander Motin 2015-02-07 17:53:47 +00:00
parent 57fd0bcf03
commit d5a6319ac7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278362

View File

@ -449,7 +449,7 @@ ctlstat_standard(struct ctlstat_context *ctx) {
(F_LUNVAL(ctx) != 0) ? " " : "", (F_LUNVAL(ctx) != 0) ? " " : "",
(F_LUNVAL(ctx) != 0) ? " " : "", (F_LUNVAL(ctx) != 0) ? " " : "",
(F_LUNVAL(ctx) != 0) ? " " : "", (F_LUNVAL(ctx) != 0) ? " " : "",
(F_CPU(ctx) == 0) ? " CPU" : ""); (F_CPU(ctx)) ? " CPU" : "");
hdr_devs = 3; hdr_devs = 3;
} else { } else {
if (F_CPU(ctx)) if (F_CPU(ctx))
@ -468,8 +468,9 @@ ctlstat_standard(struct ctlstat_context *ctx) {
if (bit_test(ctx->lun_mask, lun) == 0) if (bit_test(ctx->lun_mask, lun) == 0)
continue; continue;
fprintf(stdout, "%15.6s%d ", fprintf(stdout, "%15.6s%d %s",
"lun", lun); "lun", lun,
(F_LUNVAL(ctx) != 0) ? " " : "");
hdr_devs++; hdr_devs++;
} }
fprintf(stdout, "\n"); fprintf(stdout, "\n");