Skip to content

Commit 4a645d5

Browse files
Jesper Juhlsravnborg
authored andcommitted
kbuild: fix up printing of Linux C Library version in scripts/ver_linux
I noticed, when running scripts/ver_linux on both a Gentoo system and a Slackware system, that the line printing the C library version looked a little odd. So I fixed it up to be in line with all the rest. Old output: Linux C Library > libc.2.5 New output: Linux C Library 2.5 Signed-off-by: Jesper Juhl <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]>
1 parent 8d8d828 commit 4a645d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/ver_linux

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ showmount --version 2>&1 | grep nfs-utils | awk \
6666
'NR==1{print "nfs-utils ", $NF}'
6767

6868
ls -l `ldd /bin/sh | awk '/libc/{print $3}'` | sed \
69-
-e 's/\.so$//' | awk -F'[.-]' '{print "Linux C Library " \
70-
$(NF-2)"."$(NF-1)"."$NF}'
69+
-e 's/\.so$//' | sed -e 's/>//' | \
70+
awk -F'[.-]' '{print "Linux C Library "$(NF-1)"."$NF}'
7171

7272
ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n 1 | awk \
7373
'NR==1{print "Dynamic linker (ldd) ", $NF}'

0 commit comments

Comments
 (0)