Skip to contentSkip to conversation

livepatch: Identify the object file create-diff-object dislikes

PATCH In review Andrew Cooper 3 participants 3 messages Aug 27, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 livepatch: Identify the object file create-diff-object dislikes

... rather than leaving the user with no hint as to where to debug next.

---
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Ross Lagerwall <[email protected]>

---
 livepatch-build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
livepatch-build +1 -1
index 7068faf..b198c97 100755
@@ -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
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Andrew Cooper

... rather than leaving the user with no hint as to where to debug next.

---
CC: Konrad Rzeszutek Wilk <[email protected]>

Quoted 17 lines
CC Ross Lagerwall <[email protected]>

---
livepatch-build | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
livepatch-build +0 -0
index 7068faf..b198c97 100755
@@ -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"; }

Quoted 3 lines
        if [[ $rc -eq 0 ]]; then
            CHANGED=1
        fi

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reviewed-by on v1 1/1
#2 lore raw
In reply to Andrew Cooper
Quoted 6 lines · Andrew Cooper

... rather than leaving the user with no hint as to where to debug next.

---
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Ross Lagerwall <[email protected]>

Thanks

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel