Skip to content

Commit

Permalink
datapath: Make netlink error messages more consistent.
Browse files Browse the repository at this point in the history
Suggested-by: Andy Zhou <[email protected]>
Signed-off-by: Jesse Gross <[email protected]>
  • Loading branch information
jessegross committed Jul 8, 2013
1 parent ec7ceae commit 17ce196
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datapath/flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -1197,14 +1197,14 @@ int ipv4_tun_from_nlattr(const struct nlattr *attr,
};

if (type > OVS_TUNNEL_KEY_ATTR_MAX) {
OVS_NLERR("Unknown IPv4 tunnel attribute (type=%d, max=%d)\n",
OVS_NLERR("Unknown IPv4 tunnel attribute (type=%d, max=%d).\n",
type, OVS_TUNNEL_KEY_ATTR_MAX);
return -EINVAL;
}

if (ovs_tunnel_key_lens[type] != nla_len(a)) {
OVS_NLERR("IPv4 tunnel attribute type has unexpected "
" legnth (type=%d, length=%d, expected=%d.)\n",
" legnth (type=%d, length=%d, expected=%d).\n",
type, nla_len(a), ovs_tunnel_key_lens[type]);
return -EINVAL;
}
Expand Down

0 comments on commit 17ce196

Please sign in to comment.