diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2008-11-01 21:03:18 -0200 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2008-11-01 21:03:18 -0200 |
commit | 4d990378aecf6a692b7e0c4d4a910dac900a344d (patch) | |
tree | 4875a71671906287c093c5123775a964570b01d1 | |
parent | bc6264002ea1c7d6b084ece594c3fe8382c5e22b (diff) |
Show kernel modules being used by PCI devices
-rw-r--r-- | hardinfo2/arch/linux/common/pci.h | 6 | ||||
-rwxr-xr-x | hardinfo2/configure | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/hardinfo2/arch/linux/common/pci.h b/hardinfo2/arch/linux/common/pci.h index ada3118b..7358090a 100644 --- a/hardinfo2/arch/linux/common/pci.h +++ b/hardinfo2/arch/linux/common/pci.h @@ -99,6 +99,12 @@ __scan_pci(void) strdevice = h_strdup_cprintf("Latency=%d\n", strdevice, latency); strdevice = h_strdup_cprintf("Bus Master=%s\n", strdevice, bus_master ? "Yes" : "No"); + } else if (!strncmp(buf, "Kernel modules", 14)) { + WALK_UNTIL(' '); + WALK_UNTIL(':'); + buf++; + + strdevice = h_strdup_cprintf("Kernel modules=%s\n", strdevice, buf); } else if (!strncmp(buf, "Subsystem", 9)) { WALK_UNTIL(' '); buf++; diff --git a/hardinfo2/configure b/hardinfo2/configure index d8113727..a5f698ce 100755 --- a/hardinfo2/configure +++ b/hardinfo2/configure @@ -201,7 +201,7 @@ echo -e "#ifndef __CONFIG_H__\n#define __CONFIG_H__\n" > config.h echo "#define VERSION \"$VERSION\"" >> config.h -echo "#define LSPCI \"$LSPCI -v\"" >> config.h +echo "#define LSPCI \"$LSPCI -vk\"" >> config.h echo "#define $ARCH" >> config.h echo "#define ARCH \"$ARCH\"" >> config.h |