[PATCH] Emit an error message when dlopen fails.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Cedric Roux <sed@xxxxxxx>
---
 src/dlmisc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git src/dlmisc.c src/dlmisc.c
index f154ebd0..9e8e401e 100644
--- src/dlmisc.c
+++ src/dlmisc.c
@@ -81,10 +81,14 @@ void *snd_dlopen(const char *name, int mode)
 		strcat(filename, "/");
 		strcat(filename, name);
 		handle = dlopen(filename, mode);
+		if (!handle)
+			SNDERR("snd_dlopen: %s: %s", filename, dlerror());
 		free(filename);
 	}
 	if (!handle)
 		handle = dlopen(name, mode);
+	if (!handle)
+		SNDERR("snd_dlopen: %s: %s", name, dlerror());
 	return handle;
 #else
 	return NULL;
-- 
2.15.0

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux