Re: svn commit: r260926 - in head: sys/dev/pci sys/sys

看板FB_svn作者時間12年前 (2014/01/22 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
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 _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
文章代碼(AID): #1IthNWXz (FB_svn)
文章代碼(AID): #1IthNWXz (FB_svn)