2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 22:35:15 +00:00

netdev-dpdk: Fix incorrect byte order conversion in log message.

uint8_t values shouldn't be passed to ntohs().

Found by soarse.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Reviewed-by: Yifeng Sun <pkusunyifeng@gmail.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
This commit is contained in:
Ben Pfaff
2018-07-12 14:55:41 -07:00
committed by Ian Stokes
parent 75119da767
commit 2b7b5dbb07

View File

@@ -4202,8 +4202,8 @@ dump_flow_pattern(struct rte_flow_item *item)
VLOG_DBG("rte flow icmp pattern:\n");
if (icmp_spec) {
VLOG_DBG(" Spec: icmp_type=%"PRIu8", icmp_code=%"PRIu8"\n",
ntohs(icmp_spec->hdr.icmp_type),
ntohs(icmp_spec->hdr.icmp_code));
icmp_spec->hdr.icmp_type,
icmp_spec->hdr.icmp_code);
} else {
VLOG_DBG(" Spec = null\n");
}