From 79ecf2edb71072e6464794a9d52bf4537bda4279 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Mon, 3 Nov 2014 09:23:50 +0100 Subject: [PATCH] SNMP: added missing casts to int for printf arguments --- src/core/snmp/msg_in.c | 2 +- src/core/snmp/msg_out.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/snmp/msg_in.c b/src/core/snmp/msg_in.c index 1e1df8cf..da9b78c1 100644 --- a/src/core/snmp/msg_in.c +++ b/src/core/snmp/msg_in.c @@ -1090,7 +1090,7 @@ snmp_pdu_header_check(struct pbuf *p, u16_t ofs, u16_t pdu_len, u16_t *ofs_ret, snmp_inc_snmpingenerrs(); break; default: - LWIP_DEBUGF(SNMP_MSG_DEBUG, ("snmp_pdu_header_check(): unknown error_status: %d\n", m_stat->error_status)); + LWIP_DEBUGF(SNMP_MSG_DEBUG, ("snmp_pdu_header_check(): unknown error_status: %d\n", (int)m_stat->error_status)); break; } ofs += (1 + len_octets + len); diff --git a/src/core/snmp/msg_out.c b/src/core/snmp/msg_out.c index 92f588e7..ecc524c5 100644 --- a/src/core/snmp/msg_out.c +++ b/src/core/snmp/msg_out.c @@ -165,7 +165,7 @@ snmp_send_response(struct snmp_msg_pstat *m_stat) snmp_inc_snmpoutgenerrs(); break; default: - LWIP_DEBUGF(SNMP_MSG_DEBUG, ("snmp_send_response(): unknown error_status: %d\n", m_stat->error_status)); + LWIP_DEBUGF(SNMP_MSG_DEBUG, ("snmp_send_response(): unknown error_status: %d\n", (int)m_stat->error_status)); break; } snmp_inc_snmpoutgetresponses();