[PATCH] scripts: Fix the parameter of warning function

luzhipeng posted 1 patch 2 years, 1 month ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20220314095456.87-1-luzhipeng@cestc.cn
There is a newer version of this series
scripts/apibuild.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] scripts: Fix the parameter of warning function
Posted by luzhipeng 2 years, 1 month ago
---
 scripts/apibuild.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/apibuild.py b/scripts/apibuild.py
index bdd3077c48..99b16f47fa 100755
--- a/scripts/apibuild.py
+++ b/scripts/apibuild.py
@@ -317,7 +317,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))
-- 
2.34.0.windows.1