aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_gen.erl
diff options
context:
space:
mode:
authorTuncer Ayaz <[email protected]>2010-04-23 10:51:35 +0200
committerTuncer Ayaz <[email protected]>2010-05-05 18:48:55 +0200
commit93face25db7222e5c0e4950caaa8acbf6d9bc2dc (patch)
treef8034b9c8395b5fbc9efbcfc1b59f3ccbf7055d2 /lib/asn1/src/asn1ct_gen.erl
parent56bb6dd185486f993c944ca0aa08cba571f36522 (diff)
downloadotp-93face25db7222e5c0e4950caaa8acbf6d9bc2dc.tar.gz
otp-93face25db7222e5c0e4950caaa8acbf6d9bc2dc.tar.bz2
otp-93face25db7222e5c0e4950caaa8acbf6d9bc2dc.zip
asn1ct: Make formatting of errors and warnings consistent
Consistently format warning and error reports. Warning and error options from erlc now also work in asnc1ct. Signed-off-by: Tuncer Ayaz <[email protected]>
Diffstat (limited to 'lib/asn1/src/asn1ct_gen.erl')
-rw-r--r--lib/asn1/src/asn1ct_gen.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/asn1/src/asn1ct_gen.erl b/lib/asn1/src/asn1ct_gen.erl
index eab5fb4a2a..8c8b9b3b4d 100644
--- a/lib/asn1/src/asn1ct_gen.erl
+++ b/lib/asn1/src/asn1ct_gen.erl
@@ -87,7 +87,7 @@ pgen_module(OutFile,Erules,Module,
% gen_vars(asn1_db:mod_to_vars(Module)),
% gen_tag_table(AllTypes),
file:close(Fid),
- asn1ct:report_verbose("--~p--~n",[{generated,ErlFile}],Options).
+ asn1ct:verbose("--~p--~n",[{generated,ErlFile}],Options).
pgen_typeorval(Erules,Module,N2nConvEnums,{Types,Values,_Ptypes,_Classes,Objects,ObjectSets}) ->
@@ -1335,9 +1335,9 @@ pgen_hrl(Erules,Module,TypeOrVal,Options,_Indent) ->
Y ->
Fid = get(gen_file_out),
file:close(Fid),
- asn1ct:report_verbose("--~p--~n",
- [{generated,lists:concat([get(outfile),".hrl"])}],
- Options),
+ asn1ct:verbose("--~p--~n",
+ [{generated,lists:concat([get(outfile),".hrl"])}],
+ Options),
Y
end.