]> Git Repo - linux.git/commitdiff
selftests/livepatch: Replace hardcoded module name with variable in test-callbacks.sh
authorGeorge Guo <[email protected]>
Mon, 25 Nov 2024 11:28:12 +0000 (19:28 +0800)
committerPetr Mladek <[email protected]>
Mon, 9 Dec 2024 10:12:43 +0000 (11:12 +0100)
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 <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Petr Mladek <[email protected]>
tools/testing/selftests/livepatch/test-callbacks.sh

index 37bbc3fb278010a31dfe0a522528220e1d997b9e..2a03deb26a12bf93f322ba9baa15e76a8d18ed06 100755 (executable)
@@ -259,7 +259,7 @@ $MOD_TARGET: ${MOD_TARGET}_init
 % insmod test_modules/$MOD_LIVEPATCH.ko pre_patch_ret=-19
 livepatch: enabling patch '$MOD_LIVEPATCH'
 livepatch: '$MOD_LIVEPATCH': initializing patching transition
-test_klp_callbacks_demo: pre_patch_callback: vmlinux
+$MOD_LIVEPATCH: pre_patch_callback: vmlinux
 livepatch: pre-patch callback failed for object 'vmlinux'
 livepatch: failed to enable patch '$MOD_LIVEPATCH'
 livepatch: '$MOD_LIVEPATCH': canceling patching transition, going to unpatch
This page took 0.066802 seconds and 4 git commands to generate.