]> xenbits.xensource.com Git - xen.git/commit
tools/livepatch: Show the correct expected state before action
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Wed, 14 Dec 2016 07:51:53 +0000 (07:51 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 14 Dec 2016 20:27:19 +0000 (15:27 -0500)
commit181deca063adb9b1dc406d55a6a309f31dda32af
tree592833dc5fd0f34f83d75213c1a9f59593bb2430
parent7b9f21cabc14d823d888ff00413e49b41ca430fe
tools/livepatch: Show the correct expected state before action

Somewhat confusingly, before the action has been executed the patch is
expected to be in the "allow" state, not the "expected" state.  The
check for this was correct but the subsequent error message was not.
Fix the error message to show this state correctly.

Before:
    $ xen-livepatch unload test
    test: in wrong state (APPLIED), expected (unknown)
After:
    $ xen-livepatch unload test
    test: in wrong state (APPLIED), expected (CHECKED)

Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
tools/misc/xen-livepatch.c