common/spinlock: Improve the output from check_lock() if it trips
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 30 Oct 2017 17:42:52 +0000 (17:42 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 2 Nov 2017 16:49:57 +0000 (16:49 +0000)
commita79d4503e48739b48533737de6978397d8b3e69e
treea931ade59ff44ef4b8f1ecf8c4f69216a41272c3
parent9f592d103014e9e63119d52dac19ba20c3574922
common/spinlock: Improve the output from check_lock() if it trips

If check_lock() triggers, a crash will occur.  Instead of simply identifying
"the irq context was different", indicate the expected and current irq
context.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
Release-acked-by: Julien Grall <julien.grall@linaro.org>
xen/common/spinlock.c