Skip to content

Commit

Permalink
virtio: pci: use correct type in virtio_pci_bind()
Browse files Browse the repository at this point in the history
For printing as %u we should use an unsigned int.

Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
  • Loading branch information
xypron authored and trini committed Oct 31, 2019
1 parent c261fef commit 232ba76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/virtio/virtio_pci_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 232ba76

Please sign in to comment.