changeset 4509:90386125ec1f

using dlerror() instead strerror(), displays unresolved symbol messages
author alex
date Sun, 03 Feb 2002 13:05:30 +0000
parents fb02f169e8e2
children 1f0282f9a723
files vidix/vidixlib.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/vidixlib.c	Sun Feb 03 13:03:09 2002 +0000
+++ b/vidix/vidixlib.c	Sun Feb 03 13:05:30 2002 +0000
@@ -84,7 +84,7 @@
 	t_vdl(stream)->config_playback && t_vdl(stream)->playback_on &&
 	t_vdl(stream)->playback_off))
   {
-    printf("vidixlib: Incomplete driver: some features are missed in it.\n");
+    printf("vidixlib: Incomplete driver: some of essential features are missed in it.\n");
     return 0;
   }
   return 1;
@@ -101,7 +101,7 @@
   if(verbose) printf("vidixlib: PROBING: %s\n",drv_name);
   if(!(t_vdl(stream)->handle = dlopen(drv_name,RTLD_LAZY|RTLD_GLOBAL)))
   {
-    if(verbose) printf("vidixlib: %s not driver: %s\n",drv_name,strerror(errno));
+    if(verbose) printf("vidixlib: %s not driver: %s\n",drv_name,dlerror());
     return 0;
   }
   _ver = dlsym(t_vdl(stream)->handle,"vixGetVersion");
@@ -172,6 +172,8 @@
     strcat(drv_name,name);
     if(!(t_vdl(stream)->handle = dlopen(drv_name,RTLD_NOW|RTLD_GLOBAL)))
     {
+      if (verbose)
+	printf("vidixlib: dlopen error: %s\n", dlerror());
       err:
       free(stream);
       return NULL;