]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
klp-build: Print "objtool klp diff" command in verbose mode
authorJosh Poimboeuf <jpoimboe@kernel.org>
Fri, 3 Apr 2026 23:17:46 +0000 (16:17 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 5 May 2026 04:16:04 +0000 (21:16 -0700)
Print the full objtool command line when '--verbose' is given to help
with debugging.

Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
scripts/livepatch/klp-build

index 2bb35de5db7575136c09ad59389dbe05482647f6..327aef4d9cf8ea14f58e452b85c4c7dd38607e5c 100755 (executable)
@@ -681,6 +681,7 @@ diff_objects() {
 
                (
                        cd "$ORIG_DIR"
+                       [[ -v VERBOSE ]] && echo "cd $ORIG_DIR && ${cmd[*]}"
                        "${cmd[@]}"                                                     \
                                1> >(tee -a "$log")                                     \
                                2> >(tee -a "$log" | "${filter[@]}" >&2) ||             \