diff options
author | Justin Pettit <jpettit@nicira.com> | 2011-11-07 23:47:38 -0800 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2011-11-09 13:24:52 -0800 |
commit | 7229a773ead96f891b621cd5f3e1219af5f24dd7 (patch) | |
tree | f7e68f52fe8188fe706b4f4d5b5a84dcd640ac9e /lib/odp-util.c | |
parent | a61680c6d15fa1f1ae3072a83c0e3d7ed08f6048 (diff) |
odp-util: Use PRIu8 instead of PRId8 when printing ip_proto.
Suggested-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/odp-util.c')
-rw-r--r-- | lib/odp-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/odp-util.c b/lib/odp-util.c index c4046d71..445798ba 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -369,7 +369,7 @@ format_odp_key_attr(const struct nlattr *a, struct ds *ds) case OVS_KEY_ATTR_IPV4: ipv4_key = nl_attr_get(a); - ds_put_format(ds, "ipv4(src="IP_FMT",dst="IP_FMT",proto=%"PRId8 + ds_put_format(ds, "ipv4(src="IP_FMT",dst="IP_FMT",proto=%"PRIu8 ",tos=%#"PRIx8",ttl=%"PRIu8",frag=%s)", IP_ARGS(&ipv4_key->ipv4_src), IP_ARGS(&ipv4_key->ipv4_dst), @@ -386,7 +386,7 @@ format_odp_key_attr(const struct nlattr *a, struct ds *ds) inet_ntop(AF_INET6, ipv6_key->ipv6_src, src_str, sizeof src_str); inet_ntop(AF_INET6, ipv6_key->ipv6_dst, dst_str, sizeof dst_str); - ds_put_format(ds, "ipv6(src=%s,dst=%s,label=%#"PRIx32",proto=%"PRId8 + ds_put_format(ds, "ipv6(src=%s,dst=%s,label=%#"PRIx32",proto=%"PRIu8 ",tos=%#"PRIx8",hlimit=%"PRIu8",frag=%s)", src_str, dst_str, ntohl(ipv6_key->ipv6_label), ipv6_key->ipv6_proto, ipv6_key->ipv6_tos, |