[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH] pci: Info an Aenderungen beim Auslesen der Klasse agepasst



* pci: pci:/info zeigt jetzt subclass und interface separat an
---
 src/modules/pci/pciscan.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/modules/pci/pciscan.c b/src/modules/pci/pciscan.c
index 2ea4c7e..c82aa28 100644
--- a/src/modules/pci/pciscan.c
+++ b/src/modules/pci/pciscan.c
@@ -225,14 +225,17 @@ char* pciinfo()
         old_buffer = buffer;
         asprintf(
             &buffer, 
-            "%s%x:%x:%x -- Hersteller %x, Geraete-ID %x [Klasse %x]\n",
+            "%s%x:%x:%x -- Hersteller %x, Geraete-ID %x [Klasse %x Sub %x "
+                "Int %x]\n",
             old_buffer ? old_buffer : "",
             dev->bus,
             dev->device,
             dev->function,
             dev->vendor_id,
             dev->device_id,
-            dev->class_id
+            dev->class_id,
+            dev->subclass_id,
+            dev->interface_id
         );
         free(old_buffer);
 
-- 
1.6.0.6