Skip to content

Commit

Permalink
Fix for more return_from than call messages, causing negative level c…
Browse files Browse the repository at this point in the history
…ount
  • Loading branch information
Torbjorn Tornkvist committed Oct 2, 2017
1 parent 304175c commit 37b36e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/edbg_tracer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ list_trace(Tlist, Buf) ->
%% R E T U R N _ F R O M
({_N,{trace, _Pid, return_from, _MFA, _Value}},
#tlist{level = Level} = Z) ->
Z#tlist{level = Level-1}
Z#tlist{level = erlang:max(Level-1,0)}
end, Tlist#tlist{level = 0}, Buf),
Expand Down

0 comments on commit 37b36e2

Please sign in to comment.