[PATCH 02/17] rt-tests:hwlatdetect.py: Remove multiple statements on one line

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

 



Remove multiple statements on one line

Signed-off-by: John Kacur <jkacur@xxxxxxxxxx>
---
 src/hwlatdetect/hwlatdetect.py | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/hwlatdetect/hwlatdetect.py b/src/hwlatdetect/hwlatdetect.py
index ac87036d4c08..66e132b8c2a5 100755
--- a/src/hwlatdetect/hwlatdetect.py
+++ b/src/hwlatdetect/hwlatdetect.py
@@ -19,10 +19,12 @@ quiet = False
 watch = False
 
 def debug(str):
-    if debugging: print(str)
+    if debugging:
+        print(str)
 
 def info(str):
-    if not quiet: print(str)
+    if not quiet:
+        print(str)
 
 #
 # Class used to manage mounting and umounting the debugfs
@@ -358,7 +360,8 @@ class Tracer(Detector):
                 val = self.get_sample()
                 while val:
                     self.samples.append(val)
-                    if watch: val.display()
+                    if watch:
+                        val.display()
                     val = self.get_sample()
                 time.sleep(0.1)
         except KeyboardInterrupt as e:
@@ -425,7 +428,8 @@ class Hwlat(Detector):
                 while val:
                     val = val.strip()
                     self.samples.append(val)
-                    if watch: print(val)
+                    if watch:
+                        print(val)
                     val = self.get_sample()
                 time.sleep(0.1)
         except KeyboardInterrupt as e:
-- 
2.31.1




[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux