]> mj.ucw.cz Git - pciutils.git/commit
Fix inconsistent bus centric view between the sysfs and proc methods
authorYu Zhao <yu.zhao@intel.com>
Sun, 4 Jan 2009 08:03:45 +0000 (16:03 +0800)
committerMartin Mares <mj@ucw.cz>
Sun, 18 Jan 2009 21:57:51 +0000 (22:57 +0100)
commitcaeac5c38e34c5282a0646a697acaa1fea22ddb7
tree0ca6a5eed76235c6814055992e6af8ba4fa60aea
parent6c4e6afe5df9bdb00db8bddcaa66b7f7ea843e8e
Fix inconsistent bus centric view between the sysfs and proc methods

The vendor and device IDs may be different when using sysfs and proc
methods with bus centric view enabled. The sysfs method reads the IDs
from the configuration space rather than uses the values from sysfs
entries. But the proc method always uses values from the proc files.
This fix makes the proc method use the values from the configuration
space too for bus centric view.

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
lib/proc.c