mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-12 04:22:27 +01:00
This runs the lib/test_printf module to make sure printf is operating sanely. Signed-off-by: Kees Cook <[email protected]> Cc: Rasmus Villemoes <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Andy Shevchenko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
11 lines
203 B
Bash
11 lines
203 B
Bash
#!/bin/sh
|
|
# Runs printf infrastructure using test_printf kernel module
|
|
|
|
if /sbin/modprobe -q test_printf; then
|
|
/sbin/modprobe -q -r test_printf
|
|
echo "printf: ok"
|
|
else
|
|
echo "printf: [FAIL]"
|
|
exit 1
|
|
fi
|