RETURN_OK_WITH_ERROR();
}
+ if (fr_debug_lvl > DEBUG_ENABLED3) {
+ if (cond->type == COND_TYPE_MAP) {
+ if (cond->data.map->lhs) tmpl_attr_debug(cond->data.map->lhs);
+ if (cond->data.map->rhs) tmpl_attr_debug(cond->data.map->rhs);
+ }
+ }
+
in += dec_len;
if (*in != '\0') {
fr_strerror_printf("ERROR offset %d 'Too much text'", (int) dec_len);
unsigned int i = 0;
char buffer[sizeof(STRINGIFY(INT16_MAX)) + 1];
- INFO("%s (%p)", vpt->name, vpt);
+ switch (vpt->type) {
+ case TMPL_TYPE_ATTR:
+ case TMPL_TYPE_ATTR_UNPARSED:
+ case TMPL_TYPE_LIST:
+ break;
+
+ default:
+ INFO("%s can't print tmpls of type %s", __FUNCTION__,
+ fr_table_str_by_value(tmpl_type_table, vpt->type, "<INVALID>"));
+ return;
+ }
+
+ INFO("vp_tmpl_t %s %s (%p)", fr_table_str_by_value(tmpl_type_table, vpt->type, "<INVALID>"), vpt->name, vpt);
INFO("request references:");
/*
* Print all the request references
*/
- while ((ar = fr_dlist_next(&vpt->data.attribute.rr, rr))) {
+ while ((rr = fr_dlist_next(&vpt->data.attribute.rr, rr))) {
INFO("\t[%u] %s", i, fr_table_str_by_value(request_ref_table, rr->request, "<INVALID>"));
i++;
}
+ i = 0;
INFO("attribute references:");
/*