/* @cat_list: List of categories to check, at most LOGF_MAX_CATEGORIES entries long, terminated by LC_END if fewer @cat: Category to search for  */
static bool log_has_cat(enum log_category_t cat_list[], enum log_category_t cat)
/* @cat_list: List of categories to check, at most LOGF_MAX_CATEGORIES entries long, terminated by LC_END if fewer @cat: Category to search for  */
static bool log_has_cat(enum log_category_t cat_list[], enum log_category_t cat)
{
	int i;
	for (i = 0; i < LOGF_MAX_CATEGORIES && cat_list[i] != LOGC_END; i++) {
		if (cat_list[i] == cat)
			return true;
	}
	return false;
}