vfio: fix incorrect print type

The type of input variable is unsigned int
while the printer type is int. So fix incorrect print type.

Signed-off-by: Zhengui li <lizhengui@huawei.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
Zhengui li 2020-10-19 14:23:46 +00:00 committed by Alex Williamson
parent 88eef59796
commit c624b6b312

View File

@ -205,7 +205,7 @@ void vfio_region_write(void *opaque, hwaddr addr,
buf.qword = cpu_to_le64(data);
break;
default:
hw_error("vfio: unsupported write size, %d bytes", size);
hw_error("vfio: unsupported write size, %u bytes", size);
break;
}
@ -262,7 +262,7 @@ uint64_t vfio_region_read(void *opaque,
data = le64_to_cpu(buf.qword);
break;
default:
hw_error("vfio: unsupported read size, %d bytes", size);
hw_error("vfio: unsupported read size, %u bytes", size);
break;
}