aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2018-09-10 12:03:50 +0200
committerMicael Karlberg <[email protected]>2018-09-17 14:43:52 +0200
commit1e33e34f1eb24fe04942b6b29dbbe26e12c97671 (patch)
treeeed8d64f31c8bcfe5bc0442760a8e47b049dfe43 /lib/snmp
parent4f11bb85a427d60ca55ffa63128f17b9dba98bd6 (diff)
downloadotp-1e33e34f1eb24fe04942b6b29dbbe26e12c97671.tar.gz
otp-1e33e34f1eb24fe04942b6b29dbbe26e12c97671.tar.bz2
otp-1e33e34f1eb24fe04942b6b29dbbe26e12c97671.zip
[snmp|compiler] Spurious version message removed
The snmp mib compiler printed an spurious version message if the 'version' option was provided. OTP-15290
Diffstat (limited to 'lib/snmp')
-rw-r--r--lib/snmp/src/compile/snmpc.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/snmp/src/compile/snmpc.erl b/lib/snmp/src/compile/snmpc.erl
index 7f627d66d9..c810bfcd41 100644
--- a/lib/snmp/src/compile/snmpc.erl
+++ b/lib/snmp/src/compile/snmpc.erl
@@ -169,11 +169,7 @@ get_version() ->
MI = ?MODULE:module_info(),
Attr = get_info(attributes, MI),
Vsn = get_info(app_vsn, Attr),
- Comp = get_info(compile, MI),
- Time = get_info(time, Comp),
- {Year, Month, Day, Hour, Min, Sec} = Time,
- io_lib:format("~s [~.4w-~.2.0w-~.2.0w ~.2.0w:~.2.0w:~.2.0w]",
- [Vsn, Year, Month, Day, Hour, Min, Sec]).
+ Vsn.
maybe_display_options(Opts) ->
case lists:member(options, Opts) of