From 4bf77edf06ca5be5be005d7fa3c4a94fa32ddc75 Mon Sep 17 00:00:00 2001 From: "R. Bernstein" Date: Sun, 7 Dec 2008 08:07:03 -0500 Subject: [PATCH] More verbose about driver installed --- test/testgetdevices.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/testgetdevices.c b/test/testgetdevices.c index 52a542c1..7f2dfbd8 100644 --- a/test/testgetdevices.c +++ b/test/testgetdevices.c @@ -99,7 +99,10 @@ main(int argc, const char *argv[]) fprintf(stderr, "You should have been able to get GNU/Linux driver\n"); return 6; + } else { + printf("Good! You have the GNU/Linux driver installed.\n"); } + } else if (0 == strncmp("CYGWIN", utsname.sysname, sizeof("CYGWIN"))) { @@ -108,6 +111,8 @@ main(int argc, const char *argv[]) fprintf(stderr, "You should have been able to get Win32 driver\n"); return 6; + } else { + printf("Good! You have the Win32 driver installed.\n"); } } else if (0 == strncmp("Darwin", utsname.sysname, sizeof("Darwin"))) @@ -117,6 +122,8 @@ main(int argc, const char *argv[]) fprintf(stderr, "You should have been able to get OS/X driver\n"); return 6; + } else { + printf("Good! You have the OS/X driver installed.\n"); } } else if (0 == strncmp("NetBSD", utsname.sysname, sizeof("NetBSD"))) @@ -126,6 +133,8 @@ main(int argc, const char *argv[]) fprintf(stderr, "You should have been able to get NetBSD driver\n"); return 6; + } else { + printf("Good! You have the OS/X driver installed.\n"); } } }