x86/HVM: make explicit that hvm_print_line() does output only
authorJan Beulich <jbeulich@suse.com>
Fri, 19 Jan 2018 10:09:55 +0000 (11:09 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 19 Jan 2018 10:09:55 +0000 (11:09 +0100)
commit75c47ae9b63483ac404ea7e4a28cb5fb1d989ef8
tree338146acff0792792240a1dacc3466b442c9f2ab
parent56498d2cf9d3c5f7d3d894a89f7d66ed81548e01
x86/HVM: make explicit that hvm_print_line() does output only

On input "c" being 0xff should already have the effect of bailing early
(due to the isprint()), but let's rather make this explicit. Also
convert the BUG_ON() to an ASSERT() (nothing fatal happens in the
function if this is violated), at the same time extending what is being
checked.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/hvm.c