Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Feb 2024 22:46:30 GMT
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ed81a15517b8 - main - fib_algo(4): Lower level of algorithm switching messages to LOG_INFO
Message-ID:  <202402052246.415MkUsI086998@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by marius:

URL: https://cgit.FreeBSD.org/src/commit/?id=ed81a15517b8a8f587fd7282c3690513bb798242

commit ed81a15517b8a8f587fd7282c3690513bb798242
Author:     Marius Strobl <marius@FreeBSD.org>
AuthorDate: 2024-02-05 19:36:13 +0000
Commit:     Marius Strobl <marius@FreeBSD.org>
CommitDate: 2024-02-05 22:44:38 +0000

    fib_algo(4): Lower level of algorithm switching messages to LOG_INFO
    
    Otherwise, with the default flm_debug_level of LOG_NOTICE, it's rather
    easy to trigger debug messages such as:
    [fib_algo] inet.0 (bsearch4#18) rebuild_fd_flm: switching algo to
    radix4_lockless
    
    Also, the "severity" of these events generally only justifies LOG_INFO
    and not LOG_NOTICE.
    
    Reviewed by:    melifaro
---
 sys/net/route/fib_algo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/net/route/fib_algo.c b/sys/net/route/fib_algo.c
index 1e37acf620a9..25370f18934f 100644
--- a/sys/net/route/fib_algo.c
+++ b/sys/net/route/fib_algo.c
@@ -1382,7 +1382,7 @@ rebuild_fd_flm(struct fib_data *fd, struct fib_lookup_module *flm_new)
 	if (flm_new == fd->fd_flm)
 		fd_tmp = fd;
 	else
-		FD_PRINTF(LOG_NOTICE, fd, "switching algo to %s", flm_new->flm_name);
+		FD_PRINTF(LOG_INFO, fd, "switching algo to %s", flm_new->flm_name);
 
 	result = setup_fd_instance(flm_new, fd->fd_rh, fd_tmp, &fd_new, true);
 	if (result != FLM_SUCCESS) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202402052246.415MkUsI086998>