datapath: Added (unsigned long long) cast in printf
[sliver-openvswitch.git] / datapath / flow_netlink.c
index 9b26528..f509a8c 100644 (file)
@@ -216,14 +216,14 @@ static bool match_validate(const struct sw_flow_match *match,
        if ((key_attrs & key_expected) != key_expected) {
                /* Key attributes check failed. */
                OVS_NLERR("Missing expected key attributes (key_attrs=%llx, expected=%llx).\n",
-                               key_attrs, key_expected);
+                               (unsigned long long)key_attrs, (unsigned long long)key_expected);
                return false;
        }
 
        if ((mask_attrs & mask_allowed) != mask_attrs) {
                /* Mask attributes check failed. */
                OVS_NLERR("Contain more than allowed mask fields (mask_attrs=%llx, mask_allowed=%llx).\n",
-                               mask_attrs, mask_allowed);
+                               (unsigned long long)mask_attrs, (unsigned long long)mask_allowed);
                return false;
        }
 
@@ -628,8 +628,10 @@ static int ovs_key_from_nlattrs(struct sw_flow_match *match,  bool *exact_5tuple
 
                if (is_mask && exact_5tuple && *exact_5tuple) {
                        if (ipv6_key->ipv6_proto != 0xff ||
-                           !is_all_set((u8 *)ipv6_key->ipv6_src, sizeof(match->key->ipv6.addr.src)) ||
-                           !is_all_set((u8 *)ipv6_key->ipv6_dst, sizeof(match->key->ipv6.addr.dst)))
+                           !is_all_set((const u8 *)ipv6_key->ipv6_src,
+                                       sizeof(match->key->ipv6.addr.src)) ||
+                           !is_all_set((const u8 *)ipv6_key->ipv6_dst,
+                                       sizeof(match->key->ipv6.addr.dst)))
                                *exact_5tuple = false;
                }
        }