From: Arran Cudbard-Bell Date: Sat, 25 May 2024 02:03:50 +0000 (-0400) Subject: Rename cf_debug to cf_item_debug X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b604e2c2af0cdde566aaa8adb8e3abbb4c774a8d;p=thirdparty%2Ffreeradius-server.git Rename cf_debug to cf_item_debug --- diff --git a/src/lib/server/cf_parse.c b/src/lib/server/cf_parse.c index c8661de2b3a..19d22d80989 100644 --- a/src/lib/server/cf_parse.c +++ b/src/lib/server/cf_parse.c @@ -1417,7 +1417,7 @@ int _cf_section_rule_push(CONF_SECTION *cs, conf_parser_t const *rule, char cons subcs = cf_section_find(cs, name1, name2); if (!subcs) { cf_log_err(cs, "Failed finding '%s' subsection", name1); - cf_debug(cs); + cf_item_debug(cs); return -1; } @@ -1428,7 +1428,7 @@ int _cf_section_rule_push(CONF_SECTION *cs, conf_parser_t const *rule, char cons "Existing data added %s[%i]", "conf_parser_t", name1, cd->item.filename, cd->item.lineno); - cf_debug(cs); + cf_item_debug(cs); return -1; } diff --git a/src/lib/server/cf_util.c b/src/lib/server/cf_util.c index 8bae173ceb9..1b4f40bd4a6 100644 --- a/src/lib/server/cf_util.c +++ b/src/lib/server/cf_util.c @@ -2273,7 +2273,7 @@ void _cf_log_perr_by_child(fr_log_type_t type, CONF_SECTION const *parent, char * * @param[in] ci being debugged. */ -void _cf_debug(CONF_ITEM const *ci) +void _cf_item_debug(CONF_ITEM const *ci) { /* * Print summary of the item @@ -2400,14 +2400,14 @@ void _cf_debug(CONF_ITEM const *ci) */ void cf_pair_debug(CONF_SECTION *cp) { - cf_debug(cp); + cf_item_debug(cp); } /** Ease of use from debugger */ void cf_section_debug(CONF_SECTION *cs) { - cf_debug(cs); + cf_item_debug(cs); } /* diff --git a/src/lib/server/cf_util.h b/src/lib/server/cf_util.h index cac1104058b..7a7dbeafcde 100644 --- a/src/lib/server/cf_util.h +++ b/src/lib/server/cf_util.h @@ -358,8 +358,8 @@ void _cf_log_perr_by_child(fr_log_type_t type, CONF_SECTION const *parent, char char const *file, int line, fr_log_perror_format_t const *f_rules, char const *fmt, ...) CC_HINT(format (printf, 7, 8)); -#define cf_debug(_cf) _cf_debug(CF_TO_ITEM(_cf)) -void _cf_debug(CONF_ITEM const *ci); +#define cf_item_debug(_cf) _cf_item_debug(CF_TO_ITEM(_cf)) +void _cf_item_debug(CONF_ITEM const *ci); void cf_pair_debug(CONF_SECTION *cp); void cf_section_debug(CONF_SECTION *cs);