Lines Matching refs:num_categories
182 for (i = 0; i < lc->num_categories; i++) in log_close_debug_channels()
256 if (category < 0 || category > lc->num_categories) in log_check()
300 if (category < 0 || category > lc->num_categories) in log_vwrite()
445 log_new_context(int num_categories, char **category_names, log_context *lc) { in log_new_context() argument
453 nlc->num_categories = num_categories; in log_new_context()
455 nlc->categories = memget(num_categories * sizeof (log_channel_list)); in log_new_context()
462 num_categories * sizeof (log_channel_list)); in log_new_context()
477 for (i = 0; i < lc->num_categories; i++) in log_free_context()
485 lc->num_categories * sizeof (log_channel_list)); in log_free_context()
493 if (lc == NULL || category < 0 || category >= lc->num_categories) { in log_add_channel()
515 if (lc == NULL || category < 0 || category >= lc->num_categories) { in log_remove_channel()
575 if (category >= 0 && category < lc->num_categories && in log_category_is_active()