git: 5e7c99c005b3 - stable/13 - ktls: Hide initialization message behind bootverbose

Mark Johnston markj at FreeBSD.org
Fri Mar 12 17:30:58 UTC 2021


The branch stable/13 has been updated by markj:

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

commit 5e7c99c005b34f96ec0e5f8ad43935c87328291a
Author:     Mark Johnston <markj at FreeBSD.org>
AuthorDate: 2021-03-05 18:11:02 +0000
Commit:     Mark Johnston <markj at FreeBSD.org>
CommitDate: 2021-03-12 17:20:47 +0000

    ktls: Hide initialization message behind bootverbose
    
    We don't typically print anything when a subsystem initializes itself,
    and KTLS is currently disabled by default anyway.
    
    Reviewed by:    jhb
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D29097
    
    (cherry picked from commit 89b650872bba2e4bfbc94a200946b461ef69ae22)
---
 sys/kern/uipc_ktls.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/kern/uipc_ktls.c b/sys/kern/uipc_ktls.c
index 26912e410239..a648d37cd60f 100644
--- a/sys/kern/uipc_ktls.c
+++ b/sys/kern/uipc_ktls.c
@@ -421,7 +421,8 @@ ktls_init(void *dummy __unused)
 		}
 	}
 
-	printf("KTLS: Initialized %d threads\n", ktls_number_threads);
+	if (bootverbose)
+		printf("KTLS: Initialized %d threads\n", ktls_number_threads);
 }
 SYSINIT(ktls, SI_SUB_SMP + 1, SI_ORDER_ANY, ktls_init, NULL);
 


More information about the dev-commits-src-all mailing list