vlog: New function vlog_set_levels_from_string_assert().
authorBen Pfaff <blp@nicira.com>
Thu, 24 Jan 2013 22:17:21 +0000 (14:17 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 1 Feb 2013 22:26:46 +0000 (14:26 -0800)
commit316bd0f8229ec252ce714ca2ece8367a49d929c3
tree4248e1488c6f31538889ce4b4c8bf52f603e62f3
parent146356e958188ef0a9f32e66e674fee2cf669102
vlog: New function vlog_set_levels_from_string_assert().

Two of the users of vlog_set_levels_from_string() in the tests could have
silently failed, if their arguments were invalid.  This avoids that problem
(and a memory leak).

Found by Coverity.

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