util: Introduce ovs_assert macro.
authorBen Pfaff <blp@nicira.com>
Thu, 17 Jan 2013 00:03:03 +0000 (16:03 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 17 Jan 2013 00:03:03 +0000 (16:03 -0800)
commit4749f73d12c844b318af7f45cf45e1acac9f7c08
tree8b052885968f7cc6f0f281f1dee0a704b1ec4477
parent167744623897a67ef3fd13bcaf44a84d3641fe68
util: Introduce ovs_assert macro.

An occasionally significant problem with the standard "assert" macro is
that it writes the failure message to stderr.  In our daemons, stderr is
generally redirected to /dev/null.  It's more useful to write the failure
message to the log, which is what the new ovs_assert macro introduced in
this patch does.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/compiler.h
lib/util.c
lib/util.h
tests/library.at
tests/test-util.c