livepatch: Identify the object file create-diff-object dislikes
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
@@ -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
Quoted 6 lines · Andrew Cooper
... rather than leaving the user with no hint as to where to debug next.
Signed-off-by Andrew Cooper <[email protected]>---
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@@ -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
Quoted 6 lines · Andrew Cooper
... rather than leaving the user with no hint as to where to debug next.
Signed-off-by Andrew Cooper <[email protected]>---
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