summaryrefslogtreecommitdiffhomepage
path: root/tools/trace/tinter
diff options
context:
space:
mode:
Diffstat (limited to 'tools/trace/tinter')
-rw-r--r--tools/trace/tinter/thost.py2
-rw-r--r--tools/trace/tinter/tinter.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/tools/trace/tinter/thost.py b/tools/trace/tinter/thost.py
index 885fbbb3..cdaef554 100644
--- a/tools/trace/tinter/thost.py
+++ b/tools/trace/tinter/thost.py
@@ -19,7 +19,7 @@ def log (x):
class THost:
"""Class to connect to the flash memory."""
def __init__(self):
- self.__proto = Proto (serial.Serial ('/dev/ttyACM0'), time.time, 0.1)
+ self.__proto = Proto (serial.Serial ('/dev/ttyUSB0'), time.time, 0.1)
self.__memory = list()
self.__traces = []
diff --git a/tools/trace/tinter/tinter.py b/tools/trace/tinter/tinter.py
index 855f97da..c38239ea 100644
--- a/tools/trace/tinter/tinter.py
+++ b/tools/trace/tinter/tinter.py
@@ -29,12 +29,13 @@ class TInter:
if cmd < len(events):
e = events[cmd]
string = e.string_get()
+ vals = [ ]
for i in range (0, e.param_nb()):
p = e.param_get(i)
size = p.length()
- val = get_size (memory, size)
+ vals.append (get_size (memory, size))
memory = memory[size:]
- string = string.replace('%d', str(val), 1)
+ string = string % tuple (vals)
if self.__file == None:
print string[1:len(string)-1]