Skip to contentSkip to conversation

kselftests/ir : Improve readability of modprobe error message

PATCH In review Gautam Menghani 2 participants 2 messages May 13, 2022 – May 16, 2022 Kselftest

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kselftests/ir : Improve readability of modprobe error message

Improve the readability of error message which says module not found. The new behaviour is consistent with the modprobe command.

---
 tools/testing/selftests/ir/ir_loopback.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/ir/ir_loopback.sh +1 -1
index b90dc9939f45..aff9299c9416 100755
@@ -10,7 +10,7 @@ if [ $UID != 0 ]; then
 fi
 
 if ! /sbin/modprobe -q -n rc-loopback; then
-        echo "ir_loopback: module rc-loopback is not found [SKIP]"
+        echo "ir_loopback: module rc-loopback is not found in /lib/modules/`uname -r` [SKIP]"
         exit $ksft_skip
 fi
 
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 14 lines · Gautam Menghani

Improve the readability of error message which says module not found. The new behaviour is consistent with the modprobe command.

---
  tools/testing/selftests/ir/ir_loopback.sh | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/ir/ir_loopback.sh +0 -0
index b90dc9939f45..aff9299c9416 100755

tools/testing/selftests/ir/ir_loopback.sh if [ $UID != 0 ]; then · line 16

Quoted 8 lines
tools/testing/selftests/ir/ir_loopback.sh +1 -1
@@ -10,7 +10,7 @@ if [ $UID != 0 ]; then
  fi
 
  if ! /sbin/modprobe -q -n rc-loopback; then
-        echo "ir_loopback: module rc-loopback is not found [SKIP]"
+        echo "ir_loopback: module rc-loopback is not found in /lib/modules/`uname -r` [SKIP]"
          exit $ksft_skip
  fi
 

Applied to linux-kselftest next for 5.19-rc1

thanks,
-- Shuah