Fix 32-bit build post-r350570

The error message prints a rman_res_t, which is an uintmax_t.  Explicitly
cast, just for future-proofing, and use the correct format.
This commit is contained in:
Justin Hibbits 2019-08-04 19:55:43 +00:00
parent a83733119d
commit 4b238da67b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350572

View File

@ -400,8 +400,8 @@ pci_resource_start(struct pci_dev *pdev, int bar)
PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn));
MPASS(dev != NULL);
if (BUS_TRANSLATE_RESOURCE(dev, rle->type, rle->start, &newstart)) {
device_printf(pdev->dev.bsddev, "translate of %#lx failed\n",
rle->start);
device_printf(pdev->dev.bsddev, "translate of %#jx failed\n",
(uintmax_t)rle->start);
return (0);
}
return (newstart);