mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
Replace most uses of assert by ovs_assert.
This is a straight search-and-replace, except that I also removed #include <assert.h> from each file where there were no assert calls left. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
#include <config.h>
|
||||
#include "mac-learning.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -284,7 +283,7 @@ mac_learning_lookup(const struct mac_learning *ml,
|
||||
} else {
|
||||
struct mac_entry *e = mac_entry_lookup(ml, dst, vlan);
|
||||
|
||||
assert(e == NULL || e->tag != 0);
|
||||
ovs_assert(e == NULL || e->tag != 0);
|
||||
if (tag) {
|
||||
/* Tag either the learned port or the lack thereof. */
|
||||
*tag |= e ? e->tag : make_unknown_mac_tag(ml, dst, vlan);
|
||||
|
Reference in New Issue
Block a user