From owner-svn-src-head@FreeBSD.ORG Tue Jul 9 21:31:58 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E5EE6F4E; Tue, 9 Jul 2013 21:31:58 +0000 (UTC) (envelope-from jimharris@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id D82551E0F; Tue, 9 Jul 2013 21:31:58 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r69LVwPG051104; Tue, 9 Jul 2013 21:31:58 GMT (envelope-from jimharris@svn.freebsd.org) Received: (from jimharris@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r69LVwm0051103; Tue, 9 Jul 2013 21:31:58 GMT (envelope-from jimharris@svn.freebsd.org) Message-Id: <201307092131.r69LVwm0051103@svn.freebsd.org> From: Jim Harris Date: Tue, 9 Jul 2013 21:31:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253115 - head/sbin/nvmecontrol X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jul 2013 21:31:59 -0000 Author: jimharris Date: Tue Jul 9 21:31:58 2013 New Revision: 253115 URL: http://svnweb.freebsd.org/changeset/base/253115 Log: Condense the output for displaying LBA formats. Sponsored by: Intel MFC after: 3 days Modified: head/sbin/nvmecontrol/identify.c Modified: head/sbin/nvmecontrol/identify.c ============================================================================== --- head/sbin/nvmecontrol/identify.c Tue Jul 9 21:31:21 2013 (r253114) +++ head/sbin/nvmecontrol/identify.c Tue Jul 9 21:31:58 2013 (r253115) @@ -124,13 +124,11 @@ print_namespace(struct nvme_namespace_da printf("Thin Provisioning: %s\n", nsdata->nsfeat.thin_prov ? "Supported" : "Not Supported"); printf("Number of LBA Formats: %d\n", nsdata->nlbaf+1); - printf("Current LBA Format: LBA Format #%d\n", + printf("Current LBA Format: LBA Format #%02d\n", nsdata->flbas.format); - for (i = 0; i <= nsdata->nlbaf; i++) { - printf("LBA Format #%d:\n", i); - printf(" LBA Data Size: %d\n", - 1 << nsdata->lbaf[i].lbads); - } + for (i = 0; i <= nsdata->nlbaf; i++) + printf("LBA Format #%02d: Data Size: %5d Metadata Size: %5d\n", + i, 1 << nsdata->lbaf[i].lbads, nsdata->lbaf[i].ms); } static void