diff options
author | Hans Bolinder <[email protected]> | 2016-06-28 14:02:14 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2016-06-28 14:02:14 +0200 |
commit | 44fb5e8c080a682cd47b791ae641c196b1c0ec74 (patch) | |
tree | 2f14bfde584f2c727be771fc99b3350fdc1c229b /lib/tools/src/xref_base.erl | |
parent | 3b7a6ffddc819bf305353a593904cea9e932e7dc (diff) | |
download | otp-44fb5e8c080a682cd47b791ae641c196b1c0ec74.tar.gz otp-44fb5e8c080a682cd47b791ae641c196b1c0ec74.tar.bz2 otp-44fb5e8c080a682cd47b791ae641c196b1c0ec74.zip |
tools: Fix a bug adding multiple modules to an Xref server
The bug when introduced in OTP-19.0.
Optimize adding multiple modules to an Xref server
Diffstat (limited to 'lib/tools/src/xref_base.erl')
-rw-r--r-- | lib/tools/src/xref_base.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/tools/src/xref_base.erl b/lib/tools/src/xref_base.erl index bb9815f9b0..f298a1ce81 100644 --- a/lib/tools/src/xref_base.erl +++ b/lib/tools/src/xref_base.erl @@ -746,7 +746,7 @@ read_a_module({Dir, BaseName}, AppName, Builtins, Verbose, Warnings, Mode) -> message(Warnings, no_debug_info, [File]), no; {ok, M, Data, UnresCalls0} -> - message(Verbose, done, [File]), + message(Verbose, done_file, [File]), %% Remove duplicates. Identical unresolved calls on the %% same line are counted as _one_ unresolved call. UnresCalls = usort(UnresCalls0), @@ -1842,6 +1842,8 @@ message(true, What, Arg) -> set_up -> io:format("Setting up...", Arg); done -> + io:format("done~n", Arg); + done_file -> io:format("done reading ~ts~n", Arg); error -> io:format("error~n", Arg); |