]> xenbits.xensource.com Git - libvirt.git/commitdiff
virmodule: Fix virModuleLoad stub
authorMichal Privoznik <mprivozn@redhat.com>
Sun, 15 Jul 2018 10:09:09 +0000 (12:09 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Sun, 15 Jul 2018 10:09:09 +0000 (12:09 +0200)
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: Michal Privoznik <mprivozn@redhat.com>
src/util/virmodule.c

index b19a787e4f639231b6b7b13c0227f6d6a3604957..533cfefc77080cb21cf2fed49e1ceea8bc7797ca 100644 (file)
@@ -142,14 +142,14 @@ virModuleLoad(const char *path,
 
 #else /* ! HAVE_DLFCN_H */
 int
-virModuleLoad(const char *path ATTRIBUTE_UNUSED,
+virModuleLoad(const char *path,
               const char *regfunc ATTRIBUTE_UNUSED,
               bool required)
 {
     VIR_DEBUG("dlopen not available on this platform");
     if (required) {
         virReportSystemError(ENOSYS,
-                             _("Failed to find module '%s': %s"), path);
+                             _("Failed to find module '%s'"), path);
         return -1;
     } else {
         /* Since we have no dlopen(), but definition we have no