git: 2cb615d01514 - stable/14 - rc.d/kld: Avoid printing a trailing space

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Sat, 09 Nov 2024 01:10:44 UTC
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