From 757e10d2736034c0a7b58704735ec88482efb870 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Fri, 24 Aug 2001 20:29:43 +0000 Subject: - descr of proc files - fix small typo (segfault or not segfault? that's the question) --- mdk-stage1/probing.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c index 703913a0e..692f86fca 100644 --- a/mdk-stage1/probing.c +++ b/mdk-stage1/probing.c @@ -512,9 +512,10 @@ static void find_media(void) /* ----------------------------------------------- */ log_message("looking for Compaq Smart Array media"); { - char * procfiles[] = { "/proc/driver/array/ida0", "/proc/array/ida", - "/proc/driver/cciss/cciss0", "/proc/cciss/cciss", + char * procfiles[] = { "/proc/driver/array/ida0", "/proc/driver/cciss/cciss0", // 2.4 style + "/proc/array/ida", "/proc/cciss/cciss", // 2.2 style NULL }; + static char cpq_descr[] = "Compaq RAID logical disk"; char ** procfile = procfiles; FILE * f; while (procfile && *procfile && (f = fopen(*procfile, "rb"))) { @@ -527,7 +528,7 @@ static void find_media(void) *end = '\0'; tmp[count].name = strdup(buf); tmp[count].type = DISK; - tmp[count].model = "Compaq RAID logical disk"; + tmp[count].model = cpq_descr; log_message("CPQ: found %s", tmp[count].name); tmp[count].bus = CPQ; count++; -- cgit v1.2.1