open_func = snd_dlsym(h, open_name, SND_DLSYM_VERSION(SND_PCM_DLSYM_VERSION));
err = 0;
if (!h) {
- SNDERR("Cannot open shared library %s", lib);
+ SNDERR("Cannot open shared library %s",
+ lib ? lib : "[builtin]");
err = -ENOENT;
} else if (!open_func) {
- SNDERR("symbol %s is not defined inside %s", open_name, lib);
+ SNDERR("symbol %s is not defined inside %s", open_name,
+ lib ? lib : "[builtin]");
snd_dlclose(h);
err = -ENXIO;
}
install_func = h ? snd_dlsym(h, install, SND_DLSYM_VERSION(SND_PCM_DLSYM_VERSION)) : NULL;
err = 0;
if (!h) {
- SNDERR("Cannot open shared library %s", lib);
+ SNDERR("Cannot open shared library %s",
+ lib ? lib : "[builtin]");
err = -ENOENT;
} else if (!install_func) {
- SNDERR("symbol %s is not defined inside %s", install, lib);
+ SNDERR("symbol %s is not defined inside %s", install,
+ lib ? lib : "[builtin]");
snd_dlclose(h);
err = -ENXIO;
}