Fix a couple of flake8 Python warnings (#13763)

* Tools: fix flake8 error

* platforms: fix flake8 error

This is just guessed.
This commit is contained in:
Julian Oes
2019-12-19 07:36:16 -08:00
committed by GitHub
parent 6dc55f97d4
commit a9ca16cafe
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -366,7 +366,7 @@ class Graph(object):
try:
content = f.read()
except:
print('Failed reading file: %s, skipping content.' % path)
print('Failed reading file: %s, skipping content.' % file_name)
return
+2 -1
View File
@@ -414,8 +414,9 @@ class NX_check_tcb(gdb.Command):
tasks = NX_task.tasks()
print("tcb int: ",int(args))
print(tasks[int(args)]._tcb)
a =tasks[int(args)]._tcb['xcp']['regs']
a = tasks[int(args)]._tcb['xcp']['regs']
print("relevant registers:")
regmap = NX_register_set.v7em_regmap
for reg in regmap:
hex_addr= hex(int(a[regmap[reg]]))
eval_string = 'info line *'+str(hex_addr)