From 232ba7623171635e971227696edefddc84d47927 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Wed, 16 Oct 2019 12:59:49 +0200 Subject: [PATCH] virtio: pci: use correct type in virtio_pci_bind() For printing as %u we should use an unsigned int. Signed-off-by: Heinrich Schuchardt Reviewed-by: Bin Meng --- drivers/virtio/virtio_pci_legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c index 08764ee6f2..202e5ab1d3 100644 --- a/drivers/virtio/virtio_pci_legacy.c +++ b/drivers/virtio/virtio_pci_legacy.c @@ -277,7 +277,7 @@ static int virtio_pci_notify(struct udevice *udev, struct virtqueue *vq) static int virtio_pci_bind(struct udevice *udev) { - static int num_devs; + static unsigned int num_devs; char name[20]; /* Create a unique device name for PCI type devices */ -- 2.39.5