forked from OpenSDV/Linux_Kernel_map4vehicle
*ignored
This commit is contained in:
parent
c125c950ae
commit
1b89bab4ee
|
@ -43,6 +43,7 @@ import xml.etree.ElementTree as ET
|
||||||
|
|
||||||
default_root = 'starts'
|
default_root = 'starts'
|
||||||
ignore = list()
|
ignore = list()
|
||||||
|
ignored = set()
|
||||||
show_ignored = False
|
show_ignored = False
|
||||||
level_limit = 6
|
level_limit = 6
|
||||||
lines = 0
|
lines = 0
|
||||||
|
@ -298,6 +299,7 @@ def call_tree(node, printed=None, level=0):
|
||||||
if a in local_printed:
|
if a in local_printed:
|
||||||
continue
|
continue
|
||||||
if a in ignore:
|
if a in ignore:
|
||||||
|
ignored.add(a)
|
||||||
if show_ignored:
|
if show_ignored:
|
||||||
print_limited2((level + 1)*'\t' + '\033[2;30m' + a +
|
print_limited2((level + 1)*'\t' + '\033[2;30m' + a +
|
||||||
(' ^' if a in local_printed else '') +
|
(' ^' if a in local_printed else '') +
|
||||||
|
@ -1451,6 +1453,8 @@ def main():
|
||||||
else:
|
else:
|
||||||
ret = eval(a1 + '(' + ', '.join("'%s'" % (a)
|
ret = eval(a1 + '(' + ', '.join("'%s'" % (a)
|
||||||
for a in sys.argv[1:]) + ')')
|
for a in sys.argv[1:]) + ')')
|
||||||
|
if ignored:
|
||||||
|
print("Ignored:", " ".join(ignored))
|
||||||
if isinstance(ret, nx.DiGraph):
|
if isinstance(ret, nx.DiGraph):
|
||||||
digraph_print(ret)
|
digraph_print(ret)
|
||||||
elif isinstance(ret, bool) and ret is False:
|
elif isinstance(ret, bool) and ret is False:
|
||||||
|
|
Loading…
Reference in New Issue