Date: Thu, 15 Oct 2015 15:24:13 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r289365 - projects/mpsutil/usr.sbin/mpsutil Message-ID: <201510151524.t9FFODu4036506@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510151524.t9FFODu4036506>