From: Andrew Cooper Date: Tue, 27 Aug 2019 15:38:39 +0000 (+0100) Subject: livepatch: Identify the object file create-diff-object dislikes X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8ddcfae3b646784f56e68b1a1121e894576baf16;p=livepatch-build-tools.git livepatch: Identify the object file create-diff-object dislikes ... rather than leaving the user with no hint as to where to debug next. Signed-off-by: Andrew Cooper Reviewed-by: Konrad Rzeszutek Wilk Reviewed-by: Ross Lagerwall Signed-off-by: Ross Lagerwall --- diff --git a/livepatch-build b/livepatch-build index 7068faf..b198c97 100755 --- a/livepatch-build +++ b/livepatch-build @@ -140,7 +140,7 @@ function create_patch() die "no core file found, run 'ulimit -c unlimited' and try to recreate" fi # create-diff-object returns 3 if no functional change is found - [[ $rc -eq 0 ]] || [[ $rc -eq 3 ]] || ERROR=$(expr $ERROR "+" 1) + [[ $rc -eq 0 ]] || [[ $rc -eq 3 ]] || { ERROR=$(expr $ERROR "+" 1); warn "create-diff-object $i rc $rc"; } if [[ $rc -eq 0 ]]; then CHANGED=1 fi