From: Arran Cudbard-Bell Date: Tue, 16 Mar 2021 01:23:04 +0000 (+0000) Subject: Don't use RPEDEBUG if we're not setting the error buffer X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=de42fcaaccfa3bcd086c8bf3928e2a60f93f6ce9;p=thirdparty%2Ffreeradius-server.git Don't use RPEDEBUG if we're not setting the error buffer --- diff --git a/src/lib/unlang/xlat_eval.c b/src/lib/unlang/xlat_eval.c index b166dbbebad..4782a452d7e 100644 --- a/src/lib/unlang/xlat_eval.c +++ b/src/lib/unlang/xlat_eval.c @@ -249,7 +249,7 @@ do { \ if (fr_dlist_empty(list)) { if (arg->required) { - RPEDEBUG("Required argument %u is null", arg_num); + REDEBUG("Required argument %u is null", arg_num); return XLAT_ACTION_FAIL; } return XLAT_ACTION_DONE; @@ -382,7 +382,7 @@ xlat_action_t xlat_process_args(TALLOC_CTX *ctx, fr_value_box_list_t *list, requ */ if (!vb) { if (arg_p->required) { - RPEDEBUG("Missing required argument %u", (unsigned int)((arg_p - args) + 1)); + REDEBUG("Missing required argument %u", (unsigned int)((arg_p - args) + 1)); return XLAT_ACTION_FAIL; } return XLAT_ACTION_DONE;