Mod aaa-12 remove warning from trace_api
RCA: SOL: 修改人:zhangtao 检视人:
This commit is contained in:
parent
7a22c7fc29
commit
043330c7f2
|
@ -134,7 +134,7 @@ static int trace_recv_handle(struct pdelivnl_ctrl_data *ctrl,
|
||||||
case TRACE_CFG_POLICY_REPLY:
|
case TRACE_CFG_POLICY_REPLY:
|
||||||
reply = (trace_reply_t *)NLMSG_DATA(n);
|
reply = (trace_reply_t *)NLMSG_DATA(n);
|
||||||
if (sizeof(*reply) < (n->nlmsg_len - NLMSG_HDRLEN)) {
|
if (sizeof(*reply) < (n->nlmsg_len - NLMSG_HDRLEN)) {
|
||||||
SYSLOG_WARN("The length of the reply message is required to be %u, but fact length is %u",
|
SYSLOG_WARN("The length of the reply message is required to be %d, but fact length is %u",
|
||||||
sizeof(*reply), (n->nlmsg_len - NLMSG_HDRLEN));
|
sizeof(*reply), (n->nlmsg_len - NLMSG_HDRLEN));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -187,9 +187,9 @@ static trace_ret_t cfg_channel_send(const uint32_t seq, const trace_policy_t *p
|
||||||
SYSLOG_DEBUG("Send hdr: is_reply:%d, seq:%u, ver:%u", req.hdr.is_reply, req.hdr.seq, req.hdr.ver);
|
SYSLOG_DEBUG("Send hdr: is_reply:%d, seq:%u, ver:%u", req.hdr.is_reply, req.hdr.seq, req.hdr.ver);
|
||||||
SYSLOG_DEBUG("Send policy:");
|
SYSLOG_DEBUG("Send policy:");
|
||||||
SYSLOG_DEBUG(" src family:%u, src ip:%02x, sport:%u",
|
SYSLOG_DEBUG(" src family:%u, src ip:%02x, sport:%u",
|
||||||
req.policy.src.family, req.policy.src.addr.ip4, req.policy.sport);
|
req.policy.src.family, req.policy.src.addr.ip4.s_addr, req.policy.sport);
|
||||||
SYSLOG_DEBUG(" dst family:%u, dst ip:%02x, dport:%u",
|
SYSLOG_DEBUG(" dst family:%u, dst ip:%02x, dport:%u",
|
||||||
req.policy.dst.family, req.policy.dst.addr.ip4, req.policy.dport);
|
req.policy.dst.family, req.policy.dst.addr.ip4.s_addr, req.policy.dport);
|
||||||
SYSLOG_DEBUG(" protocol:%u, app_type:%u", req.policy.protocol, req.policy.app_type);
|
SYSLOG_DEBUG(" protocol:%u, app_type:%u", req.policy.protocol, req.policy.app_type);
|
||||||
|
|
||||||
/*发送组装好的netlink消息*/
|
/*发送组装好的netlink消息*/
|
||||||
|
|
Loading…
Reference in New Issue