From 90634b62e552d498224de3877b9c2f006f24367e Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Tue, 13 Mar 2001 21:05:56 +0000 Subject: add the module name in () when displaying the list of modules available --- loader/devices.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'loader/devices.c') diff --git a/loader/devices.c b/loader/devices.c index f82205dd9..a3f98e142 100644 --- a/loader/devices.c +++ b/loader/devices.c @@ -340,11 +340,13 @@ static int pickModule(moduleInfoSet modInfo, enum driverMajor type, newtFormAddHotKey(form, NEWT_KEY_F2); for (i = 0; i < numSorted; i++) { + char buf[80]; int num = sortedOrder[i].index; - newtListboxAppendEntry(listbox, - modInfo->moduleList[num].description, - (void *) num); + snprintf (buf, sizeof(buf), "%s (%s)", + modInfo->moduleList[num].description, + modInfo->moduleList[num].moduleName); + newtListboxAppendEntry(listbox, buf, (void *) num); if (modp && (modInfo->moduleList + num) == *modp) newtListboxSetCurrentByKey(listbox, (void *) num); } -- cgit