[PATCH RESEND] apibuild: Fix self.waring method call

luzhipeng posted 1 patch 1 week, 2 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20220507011731.448-1-luzhipeng@cestc.cn
scripts/apibuild.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH RESEND] apibuild: Fix self.waring method call
Posted by luzhipeng 1 week, 2 days ago
The parameters of self.warning is inconsistent with it's definition, So
fix it.

Signed-off-by: luzhipeng <luzhipeng@cestc.cn>
---
 scripts/apibuild.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/apibuild.py b/scripts/apibuild.py
index 2a343208c5..23a66734ac 100755
--- a/scripts/apibuild.py
+++ b/scripts/apibuild.py
@@ -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))
-- 
2.34.0.windows.1
Re: [PATCH RESEND] apibuild: Fix self.waring method call
Posted by Martin Kletzander 6 days, 22 hours ago
On Sat, May 07, 2022 at 09:17:31AM +0800, luzhipeng wrote:
>The parameters of self.warning is inconsistent with it's definition, So
>fix it.
>
>Signed-off-by: luzhipeng <luzhipeng@cestc.cn>

Reviewed-by: Martin Kletzander <mkletzan@redhat.com>

and pushed.

>---
> scripts/apibuild.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/scripts/apibuild.py b/scripts/apibuild.py
>index 2a343208c5..23a66734ac 100755
>--- a/scripts/apibuild.py
>+++ b/scripts/apibuild.py
>@@ -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))
>-- 
>2.34.0.windows.1
>
>
>