pci_devices convenience hook only returns 1 device per class

Bug #398906 reported by Brian Murray
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Binary package hint: apport

With the apport convenience functions it is supposed to be possible to find all the devices of a particular class for example:

hookutils.pci_devices(0x04)

should return all the multimedia devices. However, on my system which has two soundcards only one of them is returned. Also there are 2 display devices in my system a VGA compatible controller and a Display controller. The driver 'radeonfb' is associated with the VGA controller but hookutils.pci_devices(0x03) only returns the Dipslay controller although they both have the same class. This makes the pci_devices convenience function much less useful, however I don't think any hooks currently use this function.

This might actually be a feature of lspci (or limitation) as executing lspci with multiple '-s' options only returns one of the devices.

ProblemType: Bug
ApportLog:

Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: apport 1.0-0ubuntu5.2
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/zsh
 PATH=(custom, user)
 LANG=en_US.UTF-8
SourcePackage: apport
Uname: Linux 2.6.28-13-generic x86_64

Revision history for this message
Brian Murray (brian-murray) wrote :
Changed in apport (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → Medium
Revision history for this message
Martin Pitt (pitti) wrote :

trunk r1503

Changed in apport (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 1.6-0ubuntu1

---------------
apport (1.6-0ubuntu1) karmic; urgency=low

  * New upstream release:
    - Add support for kernel crashes, thanks to Michael Vogt!
    - apport/ui.py, run_crash(): Do not re-collect information if we already
      have a Dependencies field. This happens when calling apport on an already
      pre-processed .crash file with -c. (LP: #394497)
    - apport/hookutils.py, pci_devices(): Deliver all matching devices, not
      just the last one. (LP: #398906)
    - hookutils.py, _get_module_license(): Return "invalid" if modinfo fails,
      so that they do not count as "free". (LP: #341720)
    - packaging-apt-dpkg.py: Support additional custom native origins in
      /etc/apport/native-origins.d/ . (LP: #386052)
    - packaging-apt-dpkg.py: Drop PPA origin hack, launchpad behaves properly
      now
    - apport-gtk: Avoid focus stealing when being called without arguments (i.
      e. auto-launched). LP: #396243)
    - apport-kde: Use standard gettext again
    - Fix handling of PC lacking disassembly due to invalid memory location.
  * debian/local/apport-collect: Tag bugs with "apport-collected" on success.
    (LP: #391392)

 -- Martin Pitt <email address hidden> Wed, 15 Jul 2009 18:02:59 +0200

Changed in apport (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.