From owner-svn-src-head@FreeBSD.ORG Tue Jan 21 17:49:51 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0B63D4F1; Tue, 21 Jan 2014 17:49:51 +0000 (UTC) Received: from forward7l.mail.yandex.net (forward7l.mail.yandex.net [IPv6:2a02:6b8:0:1819::7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B008D167E; Tue, 21 Jan 2014 17:49:50 +0000 (UTC) Received: from smtp4h.mail.yandex.net (smtp4h.mail.yandex.net [84.201.186.21]) by forward7l.mail.yandex.net (Yandex) with ESMTP id E0E77BC0CF6; Tue, 21 Jan 2014 21:49:46 +0400 (MSK) Received: from smtp4h.mail.yandex.net (localhost [127.0.0.1]) by smtp4h.mail.yandex.net (Yandex) with ESMTP id 556352C1285; Tue, 21 Jan 2014 21:49:46 +0400 (MSK) Received: from unknown (unknown [77.66.224.37]) by smtp4h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id r8DkRvT6tz-njOqvs0V; Tue, 21 Jan 2014 21:49:45 +0400 (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (Client certificate not present) X-Yandex-Uniq: 2d7ae4d3-b78b-48df-98da-ebe46f4a2d0a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1390326585; bh=vw6kthvL2RHvCgkaonTem0xPFjRc8ktJQgyYxezAiso=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=D4U/kIdj0q7/pGXDFTvpQkplFPVdMKJ2kguk2Gnc4ETcTMWKl76xqN0ptTbColaUA L40CwE9cBzXyAxDFIeYBgRDsvov6IKhTmBXZwGy8LbPJsNgz/laWGihN/mnCdcb5eM evNXMQnOqBz3JEauZcVNgIZBKnxUPVNkhN5ydCPU= Authentication-Results: smtp4h.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <52DEB336.1040306@yandex.ru> Date: Tue, 21 Jan 2014 21:49:42 +0400 From: Ruslan Makhmatkhanov User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: John Baldwin , src-committers@freebsd.org Subject: Re: svn commit: r260926 - in head: sys/dev/pci sys/sys usr.sbin/pciconf References: <201401202056.s0KKuAbH069433@svn.freebsd.org> <201401211100.25712.jhb@freebsd.org> In-Reply-To: <201401211100.25712.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 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, 21 Jan 2014 17:49:51 -0000 John Baldwin wrote on 21.01.2014 20:00: > On Monday, January 20, 2014 3:56:10 pm John Baldwin wrote: >> Author: jhb >> Date: Mon Jan 20 20:56:09 2014 >> New Revision: 260926 >> URL: http://svnweb.freebsd.org/changeset/base/260926 >> >> Log: >> Add support for displaying VPD for PCI devices via pciconf. >> - Store the length of each read-only VPD value since not all values are >> guaranteed to be ASCII values (though most are). >> - Add a new pciio ioctl to fetch VPD for a single PCI device. The values >> are returned as a list of variable length records, one for the device >> name and each keyword. >> - Add a new -V flag to pciconf's list mode which displays VPD data for >> each device. >> >> MFC after: 1 week > > Sample output: > > t4nex0@pci0:4:0:4: class=0x020000 card=0x00001425 chip=0x44011425 > rev=0x00 hdr=0x00 > VPD ident = 'T420-LL-CR ' > VPD ro PN = '110114640C0 ' > VPD ro EC = '01234567890123 ' > VPD ro SN = 'PT06120042 ' > VPD ro NA = '000743123340' > VPD ro V0 = '0909FFFF' > VPD ro V1 = '48000810180109111948484848484847' > ... That's great. So why not to strip whitespace in the output? -- Regards, Ruslan T.O.S. Of Reality