aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJie Wang <wangjie88@huawei.com>2019-04-30 14:29:33 +0800
committerLaurent Vivier <laurent@vivier.eu>2019-06-06 11:20:07 +0200
commitcd2fa2a489c964335445dc911c92533133eb0fc2 (patch)
treec28b255ea57019b84130d44bdf6c6bcf2f4156cf /hw
parentff1543af228028f9b8d19f61c23d84d9bf8134f8 (diff)
downloadqemu-cd2fa2a489c964335445dc911c92533133eb0fc2.zip
qemu-cd2fa2a489c964335445dc911c92533133eb0fc2.tar.gz
qemu-cd2fa2a489c964335445dc911c92533133eb0fc2.tar.bz2
vhost: fix incorrect print type
fix incorrect print type in vhost_virtqueue_stop Signed-off-by: Jie Wang <wangjie88@huawei.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <1556605773-42019-1-git-send-email-wangjie88@huawei.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw')
-rw-r--r--hw/virtio/vhost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c
index 7f61018..286bb27 100644
--- a/hw/virtio/vhost.c
+++ b/hw/virtio/vhost.c
@@ -1081,7 +1081,7 @@ static void vhost_virtqueue_stop(struct vhost_dev *dev,
r = dev->vhost_ops->vhost_get_vring_base(dev, &state);
if (r < 0) {
- VHOST_OPS_DEBUG("vhost VQ %d ring restore failed: %d", idx, r);
+ VHOST_OPS_DEBUG("vhost VQ %u ring restore failed: %d", idx, r);
/* Connection to the backend is broken, so let's sync internal
* last avail idx to the device used idx.
*/