summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJie Wang2019-04-30 08:29:33 +0200
committerMichael S. Tsirkin2019-05-30 00:00:57 +0200
commit31618958cc48d8c51e7e256285b467c1c56af3b9 (patch)
tree7f4532bcc75738a1967de823f0d28a57319f2001
parentvhost: remove the dead code (diff)
downloadqemu-31618958cc48d8c51e7e256285b467c1c56af3b9.tar.gz
qemu-31618958cc48d8c51e7e256285b467c1c56af3b9.tar.xz
qemu-31618958cc48d8c51e7e256285b467c1c56af3b9.zip
vhost: fix incorrect print type
fix incorrect print type in vhost_virtqueue_stop Signed-off-by: Jie Wang <wangjie88@huawei.com> Message-Id: <1556605773-42019-1-git-send-email-wangjie88@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
-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 2303a8c206..60747a6f93 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.
*/