Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Nov 2024 01:10:44 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 2cb615d01514 - stable/14 - rc.d/kld: Avoid printing a trailing space
Message-ID:  <202411090110.4A91AiKF007838@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by markj:

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

commit 2cb615d01514835f8c9459a80d4ce4babce275cd
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-10-26 19:07:22 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-11-09 01:09:47 +0000

    rc.d/kld: Avoid printing a trailing space
    
    Fixes:          152382e6613d ("rc.d/kld: Print the kernel modules being loaded")
    Reported by:    jrtc27
    
    (cherry picked from commit cdb3cda6fd53b89c2bba0308d21aa8edf782dc34)
---
 libexec/rc/rc.d/kld | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

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



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