diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:06:48 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:06:48 +0000 | 
| commit | 93c1b73a09a52d4a265f683bf1954b08bb430049 (patch) | |
| tree | 5543464d74945196cc890e9d9099e5d0660df7eb /lib/fuzzer/scripts/unbalanced_allocs.py | |
| parent | 0d8e7490d6e8a13a8f0977d9b7771803b9f64ea0 (diff) | |
Notes
Diffstat (limited to 'lib/fuzzer/scripts/unbalanced_allocs.py')
| -rwxr-xr-x | lib/fuzzer/scripts/unbalanced_allocs.py | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/fuzzer/scripts/unbalanced_allocs.py b/lib/fuzzer/scripts/unbalanced_allocs.py index a4ce187679d74..74478ad55af0c 100755 --- a/lib/fuzzer/scripts/unbalanced_allocs.py +++ b/lib/fuzzer/scripts/unbalanced_allocs.py @@ -24,9 +24,9 @@ def PrintStack(line, stack):    global _skip    if _skip > 0:      return -  print 'Unbalanced ' + line.rstrip(); +  print('Unbalanced ' + line.rstrip());    for l in stack: -    print l.rstrip() +    print(l.rstrip())  def ProcessStack(line, f):    stack = [] @@ -63,15 +63,15 @@ def ProcessRun(line, f):      return ProcessMalloc(line, f, {})    allocs = {} -  print line.rstrip() +  print(line.rstrip())    line = f.readline()    while line:      if line.startswith('MallocFreeTracer: STOP'):        global _skip        _skip = _skip - 1 -      for _, (l, s) in allocs.iteritems(): +      for _, (l, s) in allocs.items():          PrintStack(l, s) -      print line.rstrip() +      print(line.rstrip())        return f.readline()      line = ProcessMalloc(line, f, allocs)    return line  | 
