Re: [PATCH 4/3] scripts: use in even more

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 20, 2019 at 08:16:27PM +0100, Ján Tomko wrote:
> Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
> ---
>  scripts/check-aclrules.py    | 2 +-
>  scripts/check-driverimpls.py | 2 +-
>  scripts/check-symfile.py     | 6 +++---
>  scripts/dtrace2systemtap.py  | 4 ++--
>  scripts/genpolkit.py         | 4 ++--
>  scripts/gensystemtap.py      | 2 +-
>  6 files changed, 10 insertions(+), 10 deletions(-)
>

With the following squashed in:
diff --git a/scripts/dtrace2systemtap.py b/scripts/dtrace2systemtap.py
index cf4d8e1a79..d6bf1f8d1f 100755
--- a/scripts/dtrace2systemtap.py
+++ b/scripts/dtrace2systemtap.py
@@ -126,7 +126,7 @@ for file in filelist:
         for idx in range(len(argbits)):
             arg = argbits[idx]
             isstr = False
-            if arg.find("char *") != -1:
+            if 'char *' in arg:
                 isstr = True

             m = re.search(r'''^.*\s\*?(\S+)$''', arg)


Reviewed-by: Erik Skultety <eskultet@xxxxxxxxxx>

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux