mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
MISRA C Rule 10.1 states: "Operands shall not be of an inappropriate essential type". bar_write() and guest_mem_bar_write() added the boolean 'hi' to a pointer difference when printing the ignored BAR index. These handlers are registered only for the memory BAR registers, so print (reg - PCI_BASE_ADDRESS_0) / 4 instead. The expression has type unsigned int, so use %u. No functional changes. Suggested-by: Roger Pau Monné <roger.pau@citrix.com> Signed-off-by: Dmytro Prokopchuk <dmytro_prokopchuk1@epam.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Roger Pau Monné <roger@xenproject.org>