summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mpsutil/mps_show.c
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-10-15 15:24:13 +0000
committerbapt <bapt@FreeBSD.org>2015-10-15 15:24:13 +0000
commit90d77eb60be7325c763918720ca6a6f98b07c2f4 (patch)
tree58fc44297592112c508eef90d8c68db132c884d9 /usr.sbin/mpsutil/mps_show.c
parent00fd613f9308c0b4560a13cad285149d8b1797fe (diff)
downloadFreeBSD-src-90d77eb60be7325c763918720ca6a6f98b07c2f4.zip
FreeBSD-src-90d77eb60be7325c763918720ca6a6f98b07c2f4.tar.gz
Correctly print the device name of the adapter
Sponsored by: Gandi.net
Diffstat (limited to 'usr.sbin/mpsutil/mps_show.c')
-rw-r--r--usr.sbin/mpsutil/mps_show.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mpsutil/mps_show.c b/usr.sbin/mpsutil/mps_show.c
index adfe7a3..46b7196 100644
--- a/usr.sbin/mpsutil/mps_show.c
+++ b/usr.sbin/mpsutil/mps_show.c
@@ -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);
OpenPOWER on IntegriCloud