Skip to contentSkip to conversation

virtio-pci: fix the confusing error message

PATCH New 王贇 1 participant 1 message Dec 9, 2021 virtio core

lore
Share & tools
lore

王贇

author
#0 lore raw

PATCH 1/1 virtio-pci: fix the confusing error message

The error message on the failure of pfn check should tell virtio-pci rather than virtio-mmio, just fix it.

---
 drivers/virtio/virtio_pci_legacy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/virtio/virtio_pci_legacy.c +1 -1
index d62e983..0ede3bf 100644
@@ -144,7 +144,7 @@ static struct virtqueue *setup_vq(struct virtio_pci_device *vp_dev,
 	q_pfn = virtqueue_get_desc_addr(vq) >> VIRTIO_PCI_QUEUE_ADDR_SHIFT;
 	if (q_pfn >> 32) {
 		dev_err(&vp_dev->pci_dev->dev,
-			"platform bug: legacy virtio-mmio must not be used with RAM above 0x%llxGB\n",
+			"platform bug: legacy virtio-pci must not be used with RAM above 0x%llxGB\n",
 			0x1ULL << (32 + PAGE_SHIFT - 30));
 		err = -E2BIG;
 		goto out_del_vq;
Signature · 1 line
1.8.3.1