From 10298be79d73ff2d98779498d5d0da1e961cce22 Mon Sep 17 00:00:00 2001 From: Arran Cudbard-Bell Date: Sun, 12 May 2024 11:28:32 -0600 Subject: [PATCH] Fix how we print global messages in rlm_icmp --- src/modules/rlm_icmp/rlm_icmp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/modules/rlm_icmp/rlm_icmp.c b/src/modules/rlm_icmp/rlm_icmp.c index cdcb289b9c..852e0258b4 100644 --- a/src/modules/rlm_icmp/rlm_icmp.c +++ b/src/modules/rlm_icmp/rlm_icmp.c @@ -23,8 +23,6 @@ */ RCSID("$Id$") -#define LOG_PREFIX mctx->mi->name - #include #include #include @@ -346,7 +344,7 @@ static void mod_icmp_read(UNUSED fr_event_list_t *el, UNUSED int sockfd, UNUSED my_echo.counter = icmp->counter; echo = fr_rb_find(t->tree, &my_echo); if (!echo) { - DEBUG("Can't find packet counter=%d in tree", icmp->counter); + DEBUG("%s - Can't find packet counter=%d in tree", mctx->mi->name, icmp->counter); return; } @@ -365,7 +363,7 @@ static void mod_icmp_error(fr_event_list_t *el, UNUSED int sockfd, UNUSED int fl module_ctx_t const *mctx = talloc_get_type_abort(uctx, module_ctx_t); rlm_icmp_thread_t *t = talloc_get_type_abort(mctx->thread, rlm_icmp_thread_t); - ERROR("Failed reading from ICMP socket - Closing it"); + ERROR("%s - Failed reading from ICMP socket - Closing it", mctx->mi->name); (void) fr_event_fd_delete(el, t->fd, FR_EVENT_FILTER_IO); close(t->fd); -- 2.47.3