linuxtorvalds / rpms / kernel

Forked from rpms/kernel 2 years ago
Clone
0139ba
diff -aurp a/tools/perf/scripts/python/exported-sql-viewer.py b/tools/perf/scripts/python/exported-sql-viewer.py
0139ba
--- a/tools/perf/scripts/python/exported-sql-viewer.py	2019-11-11 12:17:42.000000000 +0000
0139ba
+++ b/tools/perf/scripts/python/exported-sql-viewer.py	2019-12-10 18:16:19.027985531 +0000
0139ba
@@ -1573,7 +1573,7 @@ class SQLTableDialogDataItem():
0139ba
 					return str(lower_id)
0139ba
 
0139ba
 	def ConvertRelativeTime(self, val):
0139ba
-		print "val ", val
0139ba
+		print("val ", val)
0139ba
 		mult = 1
0139ba
 		suffix = val[-2:]
0139ba
 		if suffix == "ms":
0139ba
@@ -1595,29 +1595,29 @@ class SQLTableDialogDataItem():
0139ba
 		return str(val)
0139ba
 
0139ba
 	def ConvertTimeRange(self, vrange):
0139ba
-		print "vrange ", vrange
0139ba
+		print("vrange ", vrange)
0139ba
 		if vrange[0] == "":
0139ba
 			vrange[0] = str(self.first_time)
0139ba
 		if vrange[1] == "":
0139ba
 			vrange[1] = str(self.last_time)
0139ba
 		vrange[0] = self.ConvertRelativeTime(vrange[0])
0139ba
 		vrange[1] = self.ConvertRelativeTime(vrange[1])
0139ba
-		print "vrange2 ", vrange
0139ba
+		print("vrange2 ", vrange)
0139ba
 		if not self.IsNumber(vrange[0]) or not self.IsNumber(vrange[1]):
0139ba
 			return False
0139ba
-		print "ok1"
0139ba
+		print("ok1")
0139ba
 		beg_range = max(int(vrange[0]), self.first_time)
0139ba
 		end_range = min(int(vrange[1]), self.last_time)
0139ba
 		if beg_range > self.last_time or end_range < self.first_time:
0139ba
 			return False
0139ba
-		print "ok2"
0139ba
+		print("ok2")
0139ba
 		vrange[0] = self.BinarySearchTime(0, self.last_id, beg_range, True)
0139ba
 		vrange[1] = self.BinarySearchTime(1, self.last_id + 1, end_range, False)
0139ba
-		print "vrange3 ", vrange
0139ba
+		print("vrange3 ", vrange)
0139ba
 		return True
0139ba
 
0139ba
 	def AddTimeRange(self, value, ranges):
0139ba
-		print "value ", value
0139ba
+		print("value ", value)
0139ba
 		n = value.count("-")
0139ba
 		if n == 1:
0139ba
 			pass