]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
s/REDEBUG/RPEDEBUG/ (where appropriate)
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 28 Apr 2017 16:51:50 +0000 (12:51 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 28 Apr 2017 17:42:31 +0000 (13:42 -0400)
16 files changed:
src/main/cond_eval.c
src/main/map.c
src/main/tls/ocsp.c
src/main/unlang_interpret.c
src/modules/proto_dhcp/proto_dhcp.c
src/modules/proto_dhcp/rlm_dhcp.c
src/modules/proto_vmps/proto_vmps.c
src/modules/rlm_attr_filter/rlm_attr_filter.c
src/modules/rlm_json/rlm_json.c
src/modules/rlm_ldap/rlm_ldap.c
src/modules/rlm_radius_client/rlm_radius_client.c
src/modules/rlm_redis/redis.c
src/modules/rlm_redis/rlm_redis.c
src/modules/rlm_redis_ippool/rlm_redis_ippool.c
src/modules/rlm_replicate/rlm_replicate.c
src/modules/rlm_sql/sql.c

index f50d473eedb0b2d8acc0b9b82d6de051baf76b8f..b67572feaaff6427d57ffddf722caefa2a6e854d 100644 (file)
@@ -211,7 +211,7 @@ static int cond_do_regex(REQUEST *request, fr_cond_t const *c,
 
        case -1:
                EVAL_DEBUG("REGEX ERROR");
-               REDEBUG("regex failed: %s", fr_strerror());
+               RPEDEBUG("regex failed");
                break;
 
        default:
index 21fe62b7f1760d1153b2e073c8cc4fc048d181cb..5a4e3fdf4f385ceaaddb3dac83a755988d341147 100644 (file)
@@ -888,7 +888,7 @@ int map_to_vp(TALLOC_CTX *ctx, VALUE_PAIR **out, REQUEST *request, vp_map_t cons
 
                                if (value_box_cast(n, &n->data,
                                                   map->lhs->tmpl_da->type, map->lhs->tmpl_da, &vp->data) < 0) {
-                                       REDEBUG("Attribute conversion failed: %s", fr_strerror());
+                                       RPEDEBUG("Attribute conversion failed");
                                        fr_pair_list_free(&found);
                                        fr_pair_list_free(&n);
                                        return -1;
@@ -933,7 +933,7 @@ int map_to_vp(TALLOC_CTX *ctx, VALUE_PAIR **out, REQUEST *request, vp_map_t cons
                } else {
                        if (value_box_cast(n, &n->data, n->vp_type, n->da,
                                           &map->rhs->tmpl_value_box) < 0) {
-                               REDEBUG("Implicit cast failed: %s", fr_strerror());
+                               RPEDEBUG("Implicit cast failed");
                                rcode = -1;
                                goto error;
                        }
index ee40e84e4bebe971933d3c28c4e85f2bc81a4461..7a836d9d637459158ebc18c9b3876d485ef58aa1 100644 (file)
@@ -541,7 +541,7 @@ int tls_ocsp_check(REQUEST *request, SSL *ssl,
                 */
                if (now.tv_sec == 0) gettimeofday(&now, NULL);
                if (tls_utils_asn1time_to_epoch(&next, next_update) < 0) {
-                       REDEBUG("Failed parsing next_update time: %s", fr_strerror());
+                       RPEDEBUG("Failed parsing next_update time");
                        ocsp_status = OCSP_STATUS_SKIPPED;
                        goto finish;
                }
index d8e466cde31aa360555ec40dbae6cbe0225dfec0..564531e266e472e8e8953e950583d9d7acfe71a2 100644 (file)
@@ -301,7 +301,7 @@ static unlang_action_t unlang_load_balance(REQUEST *request, unlang_stack_t *sta
                                                num, active_callers, lowest_active_callers);
                                        continue;
                                }
-                               
+
                                count++;
                                RDEBUG3("load-balance found %d children with %" PRIu64 " active", count, active_callers);
 
@@ -1348,7 +1348,7 @@ void unlang_push_section(REQUEST *request, CONF_SECTION *cs, rlm_rcode_t action)
        if (cs) {
                instruction = (unlang_t *)cf_data_find(cs, unlang_group_t, NULL);
                if (!instruction) {
-                       REDEBUG("Failed to find pre-compiled unlang for section %s %s { ... }",
+                       RPEDEBUG("Failed to find pre-compiled unlang for section %s %s { ... }",
                                cf_section_name1(cs), cf_section_name2(cs));
                }
        }
@@ -1562,7 +1562,7 @@ int unlang_event_timeout_add(REQUEST *request, fr_unlang_timeout_callback_t call
        ev->ctx = ctx;
 
        if (fr_event_timer_insert(request->el, unlang_event_timeout_handler, ev, when, &(ev->ev)) < 0) {
-               REDEBUG("Failed inserting event: %s", fr_strerror());
+               RPEDEBUG("Failed inserting event");
                talloc_free(ev);
                return -1;
        }
index 5266af5e21473cb42f6acc5dca6ae84e0275a469..3049ac21eccc1b7f36b69a4c0680ebce4304e0a5 100644 (file)
@@ -222,7 +222,7 @@ static int dhcprelay_process_server_reply(REQUEST *request)
                } else {
                        vp = fr_pair_find_by_num(request->packet->vps, DHCP_MAGIC_VENDOR, 264, TAG_ANY); /* DHCP-Your-IP-Address */
                        if (!vp) {
-                               REDEBUG("Failed to find IP Address for request");
+                               RPEDEBUG("Failed to find IP Address for request");
                                return -1;
                        }
 
@@ -244,7 +244,7 @@ static int dhcprelay_process_server_reply(REQUEST *request)
                                        return 1;
                                }
                                if (fr_dhcp_add_arp_entry(request->packet->sockfd, sock->src_interface, hwvp, vp) < 0) {
-                                       REDEBUG("Failed adding ARP entry: %s", fr_strerror());
+                                       REDEBUG("Failed adding ARP entry");
                                        return -1;
                                }
                        }
@@ -386,7 +386,7 @@ static rlm_rcode_t dhcp_process(REQUEST *request)
         */
        vp = fr_pair_find_by_num(request->packet->vps, DHCP_MAGIC_VENDOR, 256, TAG_ANY); /* DHCP-Opcode */
        if (!vp) {
-               REDEBUG("Someone deleted the DHCP-Opcode!");
+               RPEDEBUG("Someone deleted the DHCP-Opcode!");
                return RLM_MODULE_FAIL;
        }
 
@@ -507,7 +507,7 @@ static rlm_rcode_t dhcp_process(REQUEST *request)
 
                if (fr_ipaddr_from_ifindex(&primary, request->packet->sockfd, request->packet->dst_ipaddr.af,
                                           request->packet->if_index) < 0) {
-                       REDEBUG("Failed determining src_ipaddr from if_index: %s", fr_strerror());
+                       RPEDEBUG("Failed determining src_ipaddr from if_index");
                        return RLM_MODULE_FAIL;
                }
                request->reply->src_ipaddr.ipaddr.ip4addr.s_addr = primary.ipaddr.ip4addr.s_addr;
@@ -641,7 +641,7 @@ static rlm_rcode_t dhcp_process(REQUEST *request)
                if (!hwvp) return RLM_MODULE_FAIL;
 
                if (fr_dhcp_add_arp_entry(request->reply->sockfd, sock->src_interface, hwvp, vp) < 0) {
-                       REDEBUG("Failed adding arp entry: %s", fr_strerror());
+                       RPEDEBUG("Failed adding arp entry");
                        return RLM_MODULE_FAIL;
                }
        }
index 72be01343ae80fdf250d8e160e165efd39a4fe28..d98ace59bec05d9db97ce0cab1ea65e9488fe59f 100644 (file)
@@ -69,7 +69,7 @@ static ssize_t dhcp_options_xlat(UNUSED TALLOC_CTX *ctx, char **out, size_t outl
        }
 
        if (src->type != TMPL_TYPE_ATTR) {
-               REDEBUG("dhcp_options cannot operate on a %s", fr_int2str(tmpl_names, src->type, "<INVALID>"));
+               RPEDEBUG("dhcp_options cannot operate on a %s", fr_int2str(tmpl_names, src->type, "<INVALID>"));
                goto error;
        }
 
@@ -142,7 +142,7 @@ static ssize_t dhcp_xlat(UNUSED TALLOC_CTX *ctx, char **out, size_t outlen,
        len = fr_dhcp_encode_option(binbuf, sizeof(binbuf), &cursor, NULL);
        talloc_free(vp);
        if (len <= 0) {
-               REDEBUG("DHCP option encoding failed: %s", fr_strerror());
+               RPEDEBUG("DHCP option encoding failed");
 
                return -1;
        }
index 478d76934563c06b2a59b20d034d60b4335e8af4..2114595cc0061e92b7b425735b47956973e7908e 100644 (file)
@@ -70,7 +70,7 @@ static void vmps_running(REQUEST *request, fr_state_action_t action)
                unlang = cf_subsection_find_name2(request->server_cs, "recv", dv->name);
                if (!unlang) unlang = cf_subsection_find_name2(request->server_cs, "recv", "*");
                if (!unlang) {
-                       REDEBUG("Failed to find 'recv' section");
+                       RPEDEBUG("Failed to find 'recv' section");
                        goto done;
                }
 
index 8bf77a4b170d9d8113b475dfb4a429b0ee79c3f5..d9d43632d71c166064c792c469293d11922ec40e 100644 (file)
@@ -59,7 +59,7 @@ static void check_pair(REQUEST *request, VALUE_PAIR *check_item, VALUE_PAIR *rep
 
        compare = fr_pair_cmp(check_item, reply_item);
        if (compare < 0) {
-               REDEBUG("Comparison failed: %s", fr_strerror());
+               RPEDEBUG("Comparison failed");
        }
 
        if (compare == 1) {
index d1f0ae217d6d03e03a785aa30daa2b23aec5fbb6..86886d54ebf3d0ef5c898be2f11fa577555e8fe6 100644 (file)
@@ -215,7 +215,7 @@ static int _json_map_proc_get_value(TALLOC_CTX *ctx, VALUE_PAIR **out, REQUEST *
        ret = fr_jpath_evaluate_leaf(request, &head, map->lhs->tmpl_da->type, map->lhs->tmpl_da,
                                     to_eval->root, to_eval->jpath);
        if (ret < 0) {
-               REDEBUG("Failed evaluating jpath: %s", fr_strerror());
+               RPEDEBUG("Failed evaluating jpath");
                return -1;
        }
        if (ret == 0) return 0;
@@ -233,7 +233,7 @@ static int _json_map_proc_get_value(TALLOC_CTX *ctx, VALUE_PAIR **out, REQUEST *
                vp->op = map->op;
 
                if (value_box_steal(vp, &vp->data, value) < 0) {
-                       REDEBUG("Copying data to attribute failed: %s", fr_strerror());
+                       RPEDEBUG("Copying data to attribute failed");
                        talloc_free(vp);
                        goto error;
                }
index de4d1728e3aec9d57459d7b128b9f6c63daec141..bef6834c5e24c1762b95cf6054a0994d2d3f2748 100644 (file)
@@ -691,7 +691,7 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authenticate(void *instance, UNUSED void
                RWDEBUG("* YOU ARE PREVENTING THE SERVER FROM WORKING");
                RWDEBUG("*********************************************");
 
-               REDEBUG("Attribute \"User-Password\" is required for authentication");
+               RPEDEBUG("Attribute \"User-Password\" is required for authentication");
 
                return RLM_MODULE_INVALID;
        }
@@ -713,7 +713,7 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authenticate(void *instance, UNUSED void
 
                if (tmpl_expand(&sasl.mech, sasl_mech_buff, sizeof(sasl_mech_buff), request,
                                inst->user_sasl.mech, fr_ldap_escape_func, inst) < 0) {
-                       REDEBUG("Failed expanding user.sasl.mech: %s", fr_strerror());
+                       RPEDEBUG("Failed expanding user.sasl.mech");
                        rcode = RLM_MODULE_FAIL;
                        goto finish;
                }
@@ -721,7 +721,7 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authenticate(void *instance, UNUSED void
                if (inst->user_sasl.proxy) {
                        if (tmpl_expand(&sasl.proxy, sasl_proxy_buff, sizeof(sasl_proxy_buff), request,
                                        inst->user_sasl.proxy, fr_ldap_escape_func, inst) < 0) {
-                               REDEBUG("Failed expanding user.sasl.proxy: %s", fr_strerror());
+                               RPEDEBUG("Failed expanding user.sasl.proxy");
                                rcode = RLM_MODULE_FAIL;
                                goto finish;
                        }
@@ -730,7 +730,7 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authenticate(void *instance, UNUSED void
                if (inst->user_sasl.realm) {
                        if (tmpl_expand(&sasl.realm, sasl_realm_buff, sizeof(sasl_realm_buff), request,
                                        inst->user_sasl.realm, fr_ldap_escape_func, inst) < 0) {
-                               REDEBUG("Failed expanding user.sasl.realm: %s", fr_strerror());
+                               RPEDEBUG("Failed expanding user.sasl.realm");
                                rcode = RLM_MODULE_FAIL;
                                goto finish;
                        }
index 97c12b0f571d2c1ee687e0c075b450788c93e74b..4d9e55c370fd437c0a19530b011f4b64606bc1e0 100644 (file)
@@ -572,13 +572,13 @@ static rlm_rcode_t CC_HINT(nonnull) mod_process(void *instance, void *thread, RE
        if (!fr_packet_list_id_alloc(conn->pl, IPPROTO_UDP, &ccr->packet, NULL)) {
                if (mod_fd_add(request->el, conn, inst) < 0) {
                        talloc_free(ccr);
-                       REDEBUG("Failed adding more sockets");
+                       RPEDEBUG("Failed adding more sockets");
                        return RLM_MODULE_FAIL;
                }
 
                if (!fr_packet_list_id_alloc(conn->pl, IPPROTO_UDP, &ccr->packet, NULL)) {
                        talloc_free(ccr);
-                       REDEBUG("Failed allocating ID: %s", fr_strerror());
+                       RPEDEBUG("Failed allocating ID");
                        return RLM_MODULE_FAIL;
                }
        }
index 7e0b81af2b65bfbaa879c005e2135720a30bdf2e..37c7ff525a149ea187f2cc8231c837f3e768a238 100644 (file)
@@ -322,7 +322,7 @@ int fr_redis_reply_to_map(TALLOC_CTX *ctx, vp_map_t **out, REQUEST *request,
                /* Logs own errors */
                if (fr_redis_reply_to_value_box(map, &vpt, value,
                                                 map->lhs->tmpl_da->type, map->lhs->tmpl_da) < 0) {
-                       REDEBUG("Failed converting Redis data: %s", fr_strerror());
+                       RPEDEBUG("Failed converting Redis data");
                        goto error;
                }
 
index ab670e539ea8acf07d053e525b106d4305a086ef..b8c9a6570bbc8bf19f7d0c8f4aca67c87ed27ba1 100644 (file)
@@ -189,14 +189,14 @@ static ssize_t redis_xlat(UNUSED TALLOC_CTX *ctx, char **out, size_t outlen,
                }
 
                if (fr_inet_pton_port(&node_addr.ipaddr, &node_addr.port, p, q - p, AF_UNSPEC, true, true) < 0) {
-                       REDEBUG("Failed parsing node address: %s", fr_strerror());
+                       RPEDEBUG("Failed parsing node address");
                        return -1;
                }
 
                p = q + 1;
 
                if (fr_redis_cluster_pool_by_node_addr(&pool, inst->cluster, &node_addr, true) < 0) {
-                       REDEBUG("Failed locating cluster node: %s", fr_strerror());
+                       RPEDEBUG("Failed locating cluster node");
                        return -1;
                }
 
index 037df75e604605478587369412ec78e7b0c38f00..7772a9c1baf0f398ad7c0ff0acdf3e7af3950a71 100644 (file)
@@ -647,7 +647,7 @@ static ippool_rcode_t redis_ippool_allocate(rlm_redis_ippool_t const *inst, REQU
 
                                if (value_box_cast(NULL, &ip_map.rhs->tmpl_value_box, PW_TYPE_IPV4_ADDR,
                                                    NULL, &tmp)) {
-                                       REDEBUG("Failed converting integer to IPv4 address: %s", fr_strerror());
+                                       RPEDEBUG("Failed converting integer to IPv4 address");
                                        ret = IPPOOL_RCODE_FAIL;
                                        goto finish;
                                }
index 55f5529d3ac44fc8a13bdd05a7d9379c5119b6a8..f5775d2c26e2dd2465530df94db2bdcde4c5106d 100644 (file)
@@ -184,7 +184,7 @@ static rlm_rcode_t replicate_packet(UNUSED void const *instance, REQUEST *reques
                        packet->id = fr_rand() & 0xff;
                        packet->sockfd = fr_socket(&home->src_ipaddr, 0);
                        if (packet->sockfd < 0) {
-                               REDEBUG("Failed opening socket: %s", fr_strerror());
+                               RPEDEBUG("Failed opening socket");
                                rcode = RLM_MODULE_FAIL;
                                goto done;
                        }
@@ -214,7 +214,7 @@ static rlm_rcode_t replicate_packet(UNUSED void const *instance, REQUEST *reques
                 */
                RDEBUG("Replicating %s list to Realm \"%s\"", fr_int2str(pair_lists, list, "<INVALID>"), realm->name);
                if (fr_radius_send(packet, NULL, home->secret) < 0) {
-                       REDEBUG("Failed replicating packet: %s", fr_strerror());
+                       RPEDEBUG("Failed replicating packet");
                        rcode = RLM_MODULE_FAIL;
                        goto done;
                }
index 369a789a4dcc1d4a45c8c6ea152ec878e90b367b..6e21c3bdc11e2fa03c970a84c36f479376a13c46 100644 (file)
@@ -189,20 +189,20 @@ int sql_fr_pair_list_afrom_str(TALLOC_CTX *ctx, REQUEST *request, VALUE_PAIR **h
         */
        vp = fr_pair_make(ctx, NULL, row[2], NULL, op);
        if (!vp) {
-               REDEBUG("Failed to create the pair: %s", fr_strerror());
+               RPEDEBUG("Failed to create the pair");
                return -1;
        }
 
        if (do_xlat) {
                if (fr_pair_mark_xlat(vp, value) < 0) {
-                       REDEBUG("Error marking pair for xlat: %s", fr_strerror());
+                       RPEDEBUG("Error marking pair for xlat");
 
                        talloc_free(vp);
                        return -1;
                }
        } else {
                if (fr_pair_value_from_str(vp, value, -1) < 0) {
-                       REDEBUG("Error parsing value: %s", fr_strerror());
+                       RPEDEBUG("Error parsing value");
 
                        talloc_free(vp);
                        return -1;