diff options
author | Ben Pfaff <blp@nicira.com> | 2013-02-01 14:55:14 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-02-01 14:55:14 -0800 |
commit | cc2862a93261e9fc9c3880982a9f45e10061733f (patch) | |
tree | e96f08b12cabcfb873c33e52b1c9753fa90b7788 /utilities | |
parent | b36db1148939c1ca7af3c3973252fea3fbf1c4e6 (diff) |
Use is_pow2() function, where possible, instead of IS_POW2 macro.
The IS_POW2 macro is meant for use in contexts where a function call is not
allowed.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'utilities')
-rw-r--r-- | utilities/ovs-ofctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c index 4d8c39f2..ec775c7d 100644 --- a/utilities/ovs-ofctl.c +++ b/utilities/ovs-ofctl.c @@ -2182,7 +2182,7 @@ ofctl_parse_flows__(struct ofputil_flow_mod *fms, size_t n_fms) break; } } - ovs_assert(IS_POW2(protocol)); + ovs_assert(is_pow2(protocol)); printf("chosen protocol: %s\n", ofputil_protocol_to_string(protocol)); |