Correctly print the device name of the adapter

Sponsored by:	Gandi.net
This commit is contained in:
Baptiste Daroussin 2015-10-15 15:24:13 +00:00
parent 48f31f4fef
commit 3f4fe35d6c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/mpsutil/; revision=289365

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);