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:
parent
a83733119d
commit
4b238da67b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350572
@ -400,8 +400,8 @@ pci_resource_start(struct pci_dev *pdev, int bar)
|
|||||||
PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn));
|
PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn));
|
||||||
MPASS(dev != NULL);
|
MPASS(dev != NULL);
|
||||||
if (BUS_TRANSLATE_RESOURCE(dev, rle->type, rle->start, &newstart)) {
|
if (BUS_TRANSLATE_RESOURCE(dev, rle->type, rle->start, &newstart)) {
|
||||||
device_printf(pdev->dev.bsddev, "translate of %#lx failed\n",
|
device_printf(pdev->dev.bsddev, "translate of %#jx failed\n",
|
||||||
rle->start);
|
(uintmax_t)rle->start);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
return (newstart);
|
return (newstart);
|
||||||
|
Loading…
Reference in New Issue
Block a user