diff options
author | Micael Karlberg <[email protected]> | 2010-12-10 14:17:30 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2010-12-10 14:17:30 +0100 |
commit | 58620c2052e07490beb44a4bd1a8fbb5ebc028ac (patch) | |
tree | 4c7a84b2b78fe0ef25b37d511e6071c3be37c04f /lib/snmp/src/agent/snmpa.erl | |
parent | d49bdb7c372c93d5b8007cbc016a587d91539fe9 (diff) | |
download | otp-58620c2052e07490beb44a4bd1a8fbb5ebc028ac.tar.gz otp-58620c2052e07490beb44a4bd1a8fbb5ebc028ac.tar.bz2 otp-58620c2052e07490beb44a4bd1a8fbb5ebc028ac.zip |
Various cosmetic (print) fixes. Wrong module names used for the
utility module in the test_config dir.
Diffstat (limited to 'lib/snmp/src/agent/snmpa.erl')
-rw-r--r-- | lib/snmp/src/agent/snmpa.erl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/snmp/src/agent/snmpa.erl b/lib/snmp/src/agent/snmpa.erl index 8ad2a83de4..c09435c03b 100644 --- a/lib/snmp/src/agent/snmpa.erl +++ b/lib/snmp/src/agent/snmpa.erl @@ -326,6 +326,9 @@ print_mib_info() -> MibsInfo = mibs_info(), print_mib_info(MibsInfo). +print_mib_info([]) -> + io:format("~n", []), + ok; print_mib_info([{Mod, Tables, Variables} | MibsInfo]) -> io:format("~n** ~s ** ~n~n", [make_pretty_mib(Mod)]), print_mib_variables2(Mod, Variables), @@ -379,9 +382,9 @@ make_pretty_mib(snmp_view_based_acm_mib) -> "SNMP-VIEW-BASED-ACM-MIB"; make_pretty_mib(snmp_target_mib) -> "SNMP-TARGET-MIB"; -make_pretty_mib(snmp_target_mib) -> +make_pretty_mib(snmp_community_mib) -> "SNMP-COMMUNITY-MIB"; -make_pretty_mib(snmp_target_mib) -> +make_pretty_mib(snmp_notification_mib) -> "SNMP-NOTIFICATION-MIB"; make_pretty_mib(snmp_target_mib) -> "SNMP-USER-BASED-SM-MIB"; |