fix the following bug. Caused by 'new PCI drivers' which have

the name of the driver appended as the 18th field in
      /proc/bus/pci/devices. For example, usb-ohci.
      sensors-detect was attempting to parse this as a hex value.
	From: Anthony Wong <ypwong@ypwong.org>
	Date: Fri, 23 Feb 2001 19:23:56 +0800
	To: Debian Bug Tracking System <submit@bugs.debian.org>
	Subject: Bug#87213: "Illegal hexadecimal digit" errors when running sensors-detect
	Reply-To: Anthony Wong <ypwong@ypwong.org>, 87213@bugs.debian.org


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1069 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2001-04-12 23:55:53 +00:00
1 parent 0ac4a8d35b
commit 2dc8cc9b41
1 file changed
+1 -1
+1 -1
View File
@@ -798,7 +798,7 @@ sub read_proc_dev_pci
($dfn,$vend,$record->{irq},$record->{base_addr0},$record->{base_addr1},
$record->{base_addr2},$record->{base_addr3},$record->{base_addr4},
$record->{base_addr5},$record->{rom_base_addr}) =
map { oct "0x$_" } split;
map { oct "0x$_" } (split) [0..9];
$record->{bus} = $dfn >> 8;
$record->{slot} = ($dfn & 0xf8) >> 3;
$record->{func} = $dfn & 0x07;