openvswitch: Added (unsigned long long) cast in printf
authorDaniele Di Proietto <daniele.di.proietto@gmail.com>
Mon, 3 Feb 2014 22:09:01 +0000 (14:09 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 16 May 2014 20:40:28 +0000 (13:40 -0700)
This is necessary, since u64 is not unsigned long long
in all architectures: u64 could be also uint64_t.

Signed-off-by: Daniele Di Proietto <daniele.di.proietto@gmail.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/flow_netlink.c

index 5517bd62e39b3451551bea79c408f4fb9cb3f623..1b22ad2de0c276f79947320c1953a1ebdc21b6bb 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;
        }