diff options
author | Micael Karlberg <[email protected]> | 2011-07-26 19:22:17 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2011-07-26 19:22:17 +0200 |
commit | 4ed9eabf91e2920e52596e134d2b1ccad8724007 (patch) | |
tree | 985be2bd44b568c2f6c48beaefd835f7ffd5c819 /lib/snmp/src/compile/snmpc_lib.hrl | |
parent | 397253e311c31eefdaf179c4c3c62abba99d43bf (diff) | |
parent | 48048a64e6d47fbdfda502bc9550aaa4d0d80cfb (diff) | |
download | otp-4ed9eabf91e2920e52596e134d2b1ccad8724007.tar.gz otp-4ed9eabf91e2920e52596e134d2b1ccad8724007.tar.bz2 otp-4ed9eabf91e2920e52596e134d2b1ccad8724007.zip |
Merge branch 'maint-r14' into dev
Conflicts:
lib/snmp/doc/src/notes.xml
lib/snmp/src/agent/snmpa_mpd.erl
lib/snmp/src/app/snmp.appup.src
lib/snmp/vsn.mk
Diffstat (limited to 'lib/snmp/src/compile/snmpc_lib.hrl')
-rw-r--r-- | lib/snmp/src/compile/snmpc_lib.hrl | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/snmp/src/compile/snmpc_lib.hrl b/lib/snmp/src/compile/snmpc_lib.hrl index 000486e728..35ec9abd03 100644 --- a/lib/snmp/src/compile/snmpc_lib.hrl +++ b/lib/snmp/src/compile/snmpc_lib.hrl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2009. All Rights Reserved. +%% Copyright Ericsson AB 2009-2011. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -20,8 +20,17 @@ -ifndef(snmpc_lib). -define(snmpc_lib, true). --define(vwarning(F, A), ?verbosity(warning, F, A, ignore)). --define(vwarning2(F, A, MibLine), ?verbosity(warning, F, A, MibLine)). +-define(vwarning(F, A), + case get(warnings_as_errors) of + true -> snmpc_lib:error(F, A); + _ -> ?verbosity(warning, F, A, ignore) + end). + +-define(vwarning2(F, A, MibLine), + case get(warnings_as_errors) of + true -> snmpc_lib:error(F, A, MibLine); + _ -> ?verbosity(warning, F, A, MibLine) + end). -define(vinfo(F, A), ?verbosity(info, F, A, ignore)). -define(vinfo2(F, A, MibLine), ?verbosity(info, F, A, MibLine)). -define(vlog(F, A), ?verbosity(log, F, A, ignore)). |