]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
apibuild: Fix self.waring method call
authorluzhipeng <luzhipeng@cestc.cn>
Sat, 7 May 2022 01:17:31 +0000 (09:17 +0800)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 9 May 2022 12:44:36 +0000 (14:44 +0200)
The parameters of self.warning is inconsistent with its definition, So
fix it.

Signed-off-by: luzhipeng <luzhipeng@cestc.cn>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
scripts/apibuild.py

index 2a343208c5ea08a567da3b13d21722d12a094b85..23a66734acdda28419a1bd11b8dbb0d6f6c5701a 100755 (executable)
@@ -328,7 +328,7 @@ class index:
             if type in type_map:
                 type_map[type][name] = d
             else:
-                self.warning("Unable to register type ", type)
+                self.warning("Unable to register type %s" % type)
 
         if name == debugsym and not quiet:
             print("New symbol: %s" % (d))