datapath: Make netlink error messages more consistent.
authorJesse Gross <jesse@nicira.com>
Mon, 8 Jul 2013 21:51:27 +0000 (14:51 -0700)
committerJesse Gross <jesse@nicira.com>
Mon, 8 Jul 2013 21:53:15 +0000 (14:53 -0700)
Suggested-by: Andy Zhou <azhou@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/flow.c

index ce14fdd..e97bf49 100644 (file)
@@ -1195,14 +1195,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;
                }