]> xenbits.xensource.com Git - livepatch-build-tools.git/commitdiff
livepatch: Identify the object file create-diff-object dislikes
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 27 Aug 2019 15:38:39 +0000 (16:38 +0100)
committerRoss Lagerwall <ross.lagerwall@citrix.com>
Tue, 27 Aug 2019 20:35:26 +0000 (21:35 +0100)
... rather than leaving the user with no hint as to where to debug next.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
livepatch-build

index 7068faf6f6df18322c1bb13538ab3dd92342653d..b198c97729d7fc157c394121fae982e08c03a14f 100755 (executable)
@@ -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