mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +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 "timeval.h"
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#if HAVE_EXECINFO_H
|
||||
#include <execinfo.h>
|
||||
@@ -731,7 +730,7 @@ backtrace_cb(struct unixctl_conn *conn,
|
||||
{
|
||||
struct ds ds = DS_EMPTY_INITIALIZER;
|
||||
|
||||
assert(HAVE_EXECINFO_H && CACHE_TIME);
|
||||
ovs_assert(HAVE_EXECINFO_H && CACHE_TIME);
|
||||
format_backtraces(&ds, 0);
|
||||
unixctl_command_reply(conn, ds_cstr(&ds));
|
||||
ds_destroy(&ds);
|
||||
|
Reference in New Issue
Block a user