]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't use RPEDEBUG if we're not setting the error buffer
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 16 Mar 2021 01:23:04 +0000 (01:23 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 16 Mar 2021 01:23:04 +0000 (01:23 +0000)
src/lib/unlang/xlat_eval.c

index b166dbbebad61275d99ec412a4d780ddac750ba2..4782a452d7ea12f983d403ad5c30cbde1163c6c1 100644 (file)
@@ -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;