git: fc3c731bbf9c - stable/14 - rc.d/kld: Print modules being loaded, take three

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Sat, 09 Nov 2024 01:10:45 UTC
The branch stable/14 has been updated by markj:

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

commit fc3c731bbf9cc51a002e3109b2b97754b6c7e06c
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-10-26 19:18:50 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-11-09 01:09:50 +0000

    rc.d/kld: Print modules being loaded, take three
    
    Some kernel modules will print informative messages when they are
    loaded, making the output confusing.  Print everything up front instead.
    
    Fixes:  152382e6613d ("rc.d/kld: Print the kernel modules being loaded")
    
    (cherry picked from commit 3e55170e0fa2695f6d662e3ab67201138a6f8698)
---
 libexec/rc/rc.d/kld | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libexec/rc/rc.d/kld b/libexec/rc/rc.d/kld
index 81a751503e51..ccfffe3091a6 100755
--- a/libexec/rc/rc.d/kld
+++ b/libexec/rc/rc.d/kld
@@ -44,10 +44,9 @@ kld_start()
 
 	local _kld
 
-	echo -n 'Loading kernel modules:'
+	echo 'Loading kernel modules:' $kld_list
 	for _kld in $kld_list ; do
 		load_kld -e ${_kld}.ko $_kld
-		echo -n " ${_kld}"
 	done
 }