Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Aug 2019 19:55:44 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r350572 - head/sys/compat/linuxkpi/common/src
Message-ID:  <201908041955.x74Jti2j014408@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908041955.x74Jti2j014408>