From: Heinrich Schuchardt Date: Wed, 16 Oct 2019 10:59:49 +0000 (+0200) Subject: virtio: pci: use correct type in virtio_pci_bind() X-Git-Url: http://git.dujemihanovic.xyz/img/static/gitweb.css?a=commitdiff_plain;h=232ba7623171635e971227696edefddc84d47927;p=u-boot.git 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 --- 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 */