git: bba8c461b995 - stable/14 - rc.d/kld: Print the kernel modules being loaded

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

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

commit bba8c461b995de8b13ec724fc6f82457280b4dd6
Author:     Mark Felder <feld@FreeBSD.org>
AuthorDate: 2024-10-26 18:43:46 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-11-09 01:09:29 +0000

    rc.d/kld: Print the kernel modules being loaded
    
    PR:             282269
    MFC after:      2 weeks
    
    (cherry picked from commit 152382e6613d7998fe6f5233767df54d3fdec329)
---
 libexec/rc/rc.d/kld | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libexec/rc/rc.d/kld b/libexec/rc/rc.d/kld
index 510884a117d0..4cfc94cb07fc 100755
--- a/libexec/rc/rc.d/kld
+++ b/libexec/rc/rc.d/kld
@@ -44,10 +44,12 @@ kld_start()
 
 	local _kld
 
-	echo 'Loading kernel modules:'
+	echo -n 'Loading kernel modules: '
 	for _kld in $kld_list ; do
 		load_kld -e ${_kld}.ko $_kld
+		echo -n "${_kld} "
 	done
+	echo
 }
 
 load_rc_config $name