xref: /linux/tools/testing/selftests/lib/printf.sh (revision 0883c2c06fb5bcf5b9e008270827e63c09a88c1e)
1#!/bin/sh
2# Runs printf infrastructure using test_printf kernel module
3
4if /sbin/modprobe -q test_printf; then
5	/sbin/modprobe -q -r test_printf
6	echo "printf: ok"
7else
8	echo "printf: [FAIL]"
9	exit 1
10fi
11