1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

virtio: pci: use correct type in virtio_pci_bind()

For printing as %u we should use an unsigned int.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
Heinrich Schuchardt
2019-10-16 12:59:49 +02:00
committed by Tom Rini
parent c261fef51c
commit 232ba76231

View File

@@ -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 virtio_pci_bind(struct udevice *udev)
{ {
static int num_devs; static unsigned int num_devs;
char name[20]; char name[20];
/* Create a unique device name for PCI type devices */ /* Create a unique device name for PCI type devices */