svn commit: r289365 - projects/mpsutil/usr.sbin/mpsutil
Baptiste Daroussin
bapt at FreeBSD.org
Thu Oct 15 15:24:14 UTC 2015
Author: bapt
Date: Thu Oct 15 15:24:13 2015
New Revision: 289365
URL: https://svnweb.freebsd.org/changeset/base/289365
Log:
Correctly print the device name of the adapter
Sponsored by: Gandi.net
Modified:
projects/mpsutil/usr.sbin/mpsutil/mps_show.c
Modified: projects/mpsutil/usr.sbin/mpsutil/mps_show.c
==============================================================================
--- projects/mpsutil/usr.sbin/mpsutil/mps_show.c Thu Oct 15 15:19:38 2015 (r289364)
+++ projects/mpsutil/usr.sbin/mpsutil/mps_show.c Thu Oct 15 15:24:13 2015 (r289365)
@@ -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);
More information about the svn-src-projects
mailing list