From owner-svn-src-projects@freebsd.org Thu Oct 15 15:24:14 2015 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 68578A151D2 for ; Thu, 15 Oct 2015 15:24:14 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 317EC6C5; Thu, 15 Oct 2015 15:24:14 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9FFODh5036507; Thu, 15 Oct 2015 15:24:13 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9FFODu4036506; Thu, 15 Oct 2015 15:24:13 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201510151524.t9FFODu4036506@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Thu, 15 Oct 2015 15:24:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r289365 - projects/mpsutil/usr.sbin/mpsutil X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2015 15:24:14 -0000 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);