Skip to contentSkip to conversation

vhost: fix incorrect print type

PATCH Applied Jie Wang 4 participants 6 messages Apr 30, 2019 – Jun 6, 2019

lore
Share & tools
lore

Jie Wang

author
#0 lore raw

PATCH 1/1 vhost: fix incorrect print type

fix incorrect print type in vhost_virtqueue_stop

---
 hw/virtio/vhost.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/virtio/vhost.c +1 -1
index 7f61018f2a..286bb27c65 100644
@@ -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.
          */
Signature · 1 line
2.16.2.windows.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 12 lines · Jie Wang

fix incorrect print type in vhost_virtqueue_stop

---
 hw/virtio/vhost.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/virtio/vhost.c +0 -0
index 7f61018f2a..286bb27c65 100644

hw/virtio/vhost.c static void vhost_virtqueue_stop(struct vhost_dev *dev, · line 1084

Quoted 5 lines
hw/virtio/vhost.c +1 -1
@@ -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);

'idx' is indeed unsigned.

Quoted 4 lines
hw/virtio/vhost.c +0 -0
         /* Connection to the backend is broken, so let's sync internal
          * last avail idx to the device used idx.
          */
#2 lore raw

Cc'ing qemu-trivial

Quoted 27 lines · Philippe Mathieu-Daudé
Quoted 12 lines · Jie Wang

fix incorrect print type in vhost_virtqueue_stop

---
 hw/virtio/vhost.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/virtio/vhost.c +0 -0
index 7f61018f2a..286bb27c65 100644

hw/virtio/vhost.c static void vhost_virtqueue_stop(struct vhost_dev *dev, · line 1084

Quoted 5 lines
hw/virtio/vhost.c +1 -1
@@ -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);

'idx' is indeed unsigned.

Quoted 4 lines
hw/virtio/vhost.c +0 -0
         /* Connection to the backend is broken, so let's sync internal
          * last avail idx to the device used idx.
          */
#3 lore raw

Le 29/05/2019 à 15:13, Philippe Mathieu-Daudé a écrit :

Quoted 31 lines

Cc'ing qemu-trivial

Quoted 27 lines · Philippe Mathieu-Daudé
Quoted 12 lines · Jie Wang

fix incorrect print type in vhost_virtqueue_stop

---
 hw/virtio/vhost.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/virtio/vhost.c +0 -0
index 7f61018f2a..286bb27c65 100644

hw/virtio/vhost.c static void vhost_virtqueue_stop(struct vhost_dev *dev, · line 1084

Quoted 5 lines
hw/virtio/vhost.c +1 -1
@@ -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);

'idx' is indeed unsigned.

Quoted 4 lines
hw/virtio/vhost.c +0 -0
         /* Connection to the backend is broken, so let's sync internal
          * last avail idx to the device used idx.
          */

Applied to my trivial-patches branch.

Thanks,
Laurent

#4 lore raw
In reply to Jie Wang
Patchew URL: https://patchew.org/QEMU/[email protected]/

Patchew URL: https://patchew.org/QEMU/[email protected]/

Hi,

This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.

=== TEST SCRIPT BEGIN ===
#!/bin/bash
time make docker-test-mingw@fedora SHOW_ENV=1 J=14 NETWORK=1 === TEST SCRIPT END ===

COPY RUNNER
RUN test-mingw in qemu:fedora
container_linux.go:247: starting container process caused "process_linux.go:258: applying cgroup configuration for process caused \"The maximum number of active connections for UID 0 has been reached\"" /usr/bin/docker-current: Error response from daemon: oci runtime error: The maximum number of active connections for UID 0 has been reached.
Traceback (most recent call last):
File "./tests/docker/docker.py", line 615, in <module>

    sys.exit(main())

The full log is available at
http://patchew.org/logs/[email protected]/testing.docker-mingw@fedora/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]

#5 lore raw
In reply to Jie Wang
Patchew URL: https://patchew.org/QEMU/[email protected]/

Patchew URL: https://patchew.org/QEMU/[email protected]/

Hi,

This series failed the asan build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.

=== TEST SCRIPT BEGIN ===
#!/bin/bash
time make docker-test-debug@fedora TARGET_LIST=x86_64-softmmu J=14 NETWORK=1 === TEST SCRIPT END ===

The full log is available at
http://patchew.org/logs/[email protected]/testing.asan/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]