提交 19e9d92b 编写于 作者: M Michal Privoznik

virmodule: Fix virModuleLoad stub

When building without dlfcn.h we are providing a virModuleLoad()
stub which is supposed to report an error. However, the format
string in virReportSystemError() call there requires two strings
but we are passing just one.
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 75d256c1
...@@ -142,14 +142,14 @@ virModuleLoad(const char *path, ...@@ -142,14 +142,14 @@ virModuleLoad(const char *path,
#else /* ! HAVE_DLFCN_H */ #else /* ! HAVE_DLFCN_H */
int int
virModuleLoad(const char *path ATTRIBUTE_UNUSED, virModuleLoad(const char *path,
const char *regfunc ATTRIBUTE_UNUSED, const char *regfunc ATTRIBUTE_UNUSED,
bool required) bool required)
{ {
VIR_DEBUG("dlopen not available on this platform"); VIR_DEBUG("dlopen not available on this platform");
if (required) { if (required) {
virReportSystemError(ENOSYS, virReportSystemError(ENOSYS,
_("Failed to find module '%s': %s"), path); _("Failed to find module '%s'"), path);
return -1; return -1;
} else { } else {
/* Since we have no dlopen(), but definition we have no /* Since we have no dlopen(), but definition we have no
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册