aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2015-02-11 21:23:45 +0000
committerBryn M. Reeves <bmr@redhat.com>2015-02-11 21:23:45 +0000
commit3044fcedaf85acd3af76106473341801460aaebc (patch)
tree20e913502b5be3e2736e9f87bcb5b9ed8b8b460b
parent9cf393ac27728287927d2c1400e046a8c16679e7 (diff)
downloadsos-3044fcedaf85acd3af76106473341801460aaebc.tar.gz
[pci] simplify lspci collection
pciutils now supports showing name information along with numeric identifiers (lspci -nnvv). Use this as the default 'lspci' data and drop the split names vs. numbers output. Fixes #458. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/pci.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/sos/plugins/pci.py b/sos/plugins/pci.py
index ba9e6bbb..304b3e98 100644
--- a/sos/plugins/pci.py
+++ b/sos/plugins/pci.py
@@ -29,10 +29,7 @@ class Pci(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
"/proc/bus/pci"
])
- self.add_cmd_output("lspci", root_symlink="lspci")
- self.add_cmd_output([
- "lspci -nvv",
- "lspci -tv"
- ])
+ self.add_cmd_output("lspci -nnvv", root_symlink="lspci")
+ self.add_cmd_output("lspci -tv")
# vim: et ts=4 sw=4