From: Arran Cudbard-Bell Date: Sun, 12 May 2024 17:28:32 +0000 (-0600) Subject: Fix how we print global messages in rlm_icmp X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10298be79d73ff2d98779498d5d0da1e961cce22;p=thirdparty%2Ffreeradius-server.git Fix how we print global messages in rlm_icmp --- diff --git a/src/modules/rlm_icmp/rlm_icmp.c b/src/modules/rlm_icmp/rlm_icmp.c index cdcb289b9c2..852e0258b4c 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);