Author: jhibbits
Date: Sun Aug  4 19:55:43 2019
New Revision: 350572
URL: https://svnweb.freebsd.org/changeset/base/350572

Log:
  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.

Modified:
  head/sys/compat/linuxkpi/common/src/linux_pci.c

Modified: head/sys/compat/linuxkpi/common/src/linux_pci.c
==============================================================================
--- head/sys/compat/linuxkpi/common/src/linux_pci.c     Sun Aug  4 19:47:02 
2019        (r350571)
+++ head/sys/compat/linuxkpi/common/src/linux_pci.c     Sun Aug  4 19:55:43 
2019        (r350572)
@@ -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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to