[PATCH v2 31/53] klp-build: Print "objtool klp diff" command in verbose mode

From: Josh Poimboeuf

Date: Fri May 01 2026 - 00:15:03 EST


Print the full objtool command line when '--verbose' is given to help
with debugging.

Acked-by: Song Liu <song@xxxxxxxxxx>
Signed-off-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
---
scripts/livepatch/klp-build | 1 +
1 file changed, 1 insertion(+)

diff --git a/scripts/livepatch/klp-build b/scripts/livepatch/klp-build
index 2bb35de5db75..355345aa94d2 100755
--- a/scripts/livepatch/klp-build
+++ b/scripts/livepatch/klp-build
@@ -681,6 +681,7 @@ diff_objects() {

(
cd "$ORIG_DIR"
+ [[ -v VERBOSE ]] && echo "${cmd[@]}"
"${cmd[@]}" \
1> >(tee -a "$log") \
2> >(tee -a "$log" | "${filter[@]}" >&2) || \
--
2.53.0