diff options
author | Daniele Di Proietto <daniele.di.proietto@gmail.com> | 2014-02-03 17:09:01 -0500 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2014-05-16 16:40:28 -0400 |
commit | cc23ebf3bb4348fb022c0d25494307459bb2e539 (patch) | |
tree | 4d1e09991020d7f333e52db7b7ac4faa485da5c7 /net/openvswitch/flow_netlink.c | |
parent | 07dc0602c5976cfc36ccffe5c6d73234f204d585 (diff) |
openvswitch: Added (unsigned long long) cast in printf
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>
Diffstat (limited to 'net/openvswitch/flow_netlink.c')
-rw-r--r-- | net/openvswitch/flow_netlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/openvswitch/flow_netlink.c b/net/openvswitch/flow_netlink.c index 5517bd62e39b..1b22ad2de0c2 100644 --- a/net/openvswitch/flow_netlink.c +++ b/net/openvswitch/flow_netlink.c | |||
@@ -216,14 +216,14 @@ static bool match_validate(const struct sw_flow_match *match, | |||
216 | if ((key_attrs & key_expected) != key_expected) { | 216 | if ((key_attrs & key_expected) != key_expected) { |
217 | /* Key attributes check failed. */ | 217 | /* Key attributes check failed. */ |
218 | OVS_NLERR("Missing expected key attributes (key_attrs=%llx, expected=%llx).\n", | 218 | OVS_NLERR("Missing expected key attributes (key_attrs=%llx, expected=%llx).\n", |
219 | key_attrs, key_expected); | 219 | (unsigned long long)key_attrs, (unsigned long long)key_expected); |
220 | return false; | 220 | return false; |
221 | } | 221 | } |
222 | 222 | ||
223 | if ((mask_attrs & mask_allowed) != mask_attrs) { | 223 | if ((mask_attrs & mask_allowed) != mask_attrs) { |
224 | /* Mask attributes check failed. */ | 224 | /* Mask attributes check failed. */ |
225 | OVS_NLERR("Contain more than allowed mask fields (mask_attrs=%llx, mask_allowed=%llx).\n", | 225 | OVS_NLERR("Contain more than allowed mask fields (mask_attrs=%llx, mask_allowed=%llx).\n", |
226 | mask_attrs, mask_allowed); | 226 | (unsigned long long)mask_attrs, (unsigned long long)mask_allowed); |
227 | return false; | 227 | return false; |
228 | } | 228 | } |
229 | 229 | ||