mirror of
https://github.com/openvswitch/ovs
synced 2025-10-29 15:28:56 +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:
@@ -16,7 +16,6 @@
|
||||
|
||||
#include <config.h>
|
||||
#include "dynamic-string.h"
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
@@ -165,7 +164,7 @@ ds_put_format_valist(struct ds *ds, const char *format, va_list args_)
|
||||
needed = vsnprintf(&ds->string[ds->length], available, format, args);
|
||||
va_end(args);
|
||||
|
||||
assert(needed < available);
|
||||
ovs_assert(needed < available);
|
||||
ds->length += needed;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user