libcamera: controls: Use ASSERT() instead of assert()

The ASSERT() macro integrates with the logging infrastructure, use it to
replace assert().

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Laurent Pinchart 2021-12-29 21:34:13 +02:00
parent 8cbda75a8d
commit 46b32fa0e4

View file

@ -527,7 +527,7 @@ ControlInfo::ControlInfo(Span<const ControlValue> values,
ControlInfo::ControlInfo(std::set<bool> values, bool def)
: min_(false), max_(true), def_(def), values_({ false, true })
{
assert(values.count(def) && values.size() == 2);
ASSERT(values.count(def) && values.size() == 2);
}
/**