Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/livepatch: Replace hardcoded module name with variable in test-callbacks.sh

Replaced the hardcoded module name test_klp_callbacks_demo in the
pre_patch_callback log message with the variable $MOD_LIVEPATCH.

Signed-off-by: George Guo <guodongtai@kylinos.cn>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20241125112812.281018-2-dongtai.guo@linux.dev
Signed-off-by: Petr Mladek <pmladek@suse.com>

authored by

George Guo and committed by
Petr Mladek
477fb067 aa44f414

+1 -1
+1 -1
tools/testing/selftests/livepatch/test-callbacks.sh
··· 259 259 % insmod test_modules/$MOD_LIVEPATCH.ko pre_patch_ret=-19 260 260 livepatch: enabling patch '$MOD_LIVEPATCH' 261 261 livepatch: '$MOD_LIVEPATCH': initializing patching transition 262 - test_klp_callbacks_demo: pre_patch_callback: vmlinux 262 + $MOD_LIVEPATCH: pre_patch_callback: vmlinux 263 263 livepatch: pre-patch callback failed for object 'vmlinux' 264 264 livepatch: failed to enable patch '$MOD_LIVEPATCH' 265 265 livepatch: '$MOD_LIVEPATCH': canceling patching transition, going to unpatch