x86: make debug output consistent in hvm_set_callback_via
authorMalcolm Crossley <malcolm.crossley@citrix.com>
Mon, 21 Dec 2015 12:40:48 +0000 (13:40 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 21 Dec 2015 12:40:48 +0000 (13:40 +0100)
commit5c1048565ba5b240f47203bdb67572bee73d639e
tree949d91facccfde72b048f15e9d99d4a57e41a1ef
parent506db9078c8c9a1c814fc9f542b198385448218e
x86: make debug output consistent in hvm_set_callback_via

The unconditional printks in the switch statement of the
hvm_set_callback_via function results in Xen log spam in non debug
versions of Xen. The printks are for debug output only so conditionally
compile the entire switch statement on debug versions of Xen only.

This is XSA-169.

Signed-off-by: Malcolm Crossley <malcolm.crossley@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/x86/hvm/irq.c