Correctly print the device name of the adapter

Sponsored by:	Gandi.net
This commit is contained in:
bapt 2015-10-15 15:24:13 +00:00
parent 00fd613f93
commit 90d77eb60b

View File

@ -89,7 +89,7 @@ show_adapter(int ac, char **av)
warnx("Invalid controller info");
return (EINVAL);
}
printf("mps%d Adapter:\n", mps_unit);
printf("mp%s%d Adapter:\n", is_mps ? "s": "r", mps_unit);
printf(" Board Name: %.16s\n", man0->BoardName);
printf(" Board Assembly: %.16s\n", man0->BoardAssembly);
printf(" Chip Name: %.16s\n", man0->ChipName);