aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/agent/snmpa_net_if.erl
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2014-08-07 17:31:10 +0200
committerRaimo Niskanen <[email protected]>2014-08-07 17:36:08 +0200
commite910f8568a4d19093f7ea8c6865367c3e73703f0 (patch)
tree8db28f80bb377d726cb634ec67817ee71a85b63a /lib/snmp/src/agent/snmpa_net_if.erl
parent948705328504ca78bce684ded56ce47d35a0068f (diff)
downloadotp-e910f8568a4d19093f7ea8c6865367c3e73703f0.tar.gz
otp-e910f8568a4d19093f7ea8c6865367c3e73703f0.tar.bz2
otp-e910f8568a4d19093f7ea8c6865367c3e73703f0.zip
Fix error printouts to not crash
Diffstat (limited to 'lib/snmp/src/agent/snmpa_net_if.erl')
-rw-r--r--lib/snmp/src/agent/snmpa_net_if.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/snmp/src/agent/snmpa_net_if.erl b/lib/snmp/src/agent/snmpa_net_if.erl
index 389c26834d..840d56d563 100644
--- a/lib/snmp/src/agent/snmpa_net_if.erl
+++ b/lib/snmp/src/agent/snmpa_net_if.erl
@@ -1064,7 +1064,7 @@ do_handle_send_pdu1(
"Can not find transport~n"
" size: ~p~n"
" to: ~s",
- [sz(Packet), To]);
+ [sz(Packet), format_address(To)]);
Transport ->
maybe_udp_send(S, Transport, To, Packet)
end;
@@ -1080,7 +1080,7 @@ do_handle_send_pdu1(
"Can not find transport~n"
" size: ~p~n"
" to: ~s",
- [sz(Packet), To]);
+ [sz(Packet), format_address(To)]);
Transport ->
maybe_udp_send(S, Transport, To, Packet, Type, LogData)
end