cf_log_err(), not fr_strerror_printf()
authorAlan T. DeKok <aland@freeradius.org>
Tue, 28 Mar 2017 19:43:38 +0000 (15:43 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 28 Mar 2017 19:43:38 +0000 (15:43 -0400)
src/main/modcall.c

index b3dd3f0..594c2f7 100644 (file)
@@ -1684,9 +1684,9 @@ int modcall_fixup_update(vp_map_t *map, UNUSED void *ctx)
                                da = dict_attrbytype(map->lhs->tmpl_da->attr, map->lhs->tmpl_da->vendor,
                                                     map->rhs->tmpl_data_type);
                                if (!da) {
-                                       fr_strerror_printf("Cannot find %s variant of attribute \"%s\"",
-                                                          fr_int2str(dict_attr_types, map->rhs->tmpl_data_type,
-                                                          "<INVALID>"), map->lhs->tmpl_da->name);
+                                       cf_log_err(map->ci, "Cannot find %s variant of attribute \"%s\"",
+                                                  fr_int2str(dict_attr_types, map->rhs->tmpl_data_type,
+                                                             "<INVALID>"), map->lhs->tmpl_da->name);
                                        return -1;
                                }
                                map->lhs->tmpl_da = da;