From 4d990378aecf6a692b7e0c4d4a910dac900a344d Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sat, 1 Nov 2008 21:03:18 -0200 Subject: Show kernel modules being used by PCI devices --- hardinfo2/arch/linux/common/pci.h | 6 ++++++ hardinfo2/configure | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3