From 3f4fe35d6c63704d6a5a7aea720bd1d6d689bb91 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Thu, 15 Oct 2015 15:24:13 +0000 Subject: [PATCH] Correctly print the device name of the adapter Sponsored by: Gandi.net --- usr.sbin/mpsutil/mps_show.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/mpsutil/mps_show.c b/usr.sbin/mpsutil/mps_show.c index adfe7a352383..46b7196366f8 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);