Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Aug 2019 16:22:16 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351083 - head/sys/dev/ntb/ntb_hw
Message-ID:  <201908151622.x7FGMGD1000916@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Thu Aug 15 16:22:15 2019
New Revision: 351083
URL: https://svnweb.freebsd.org/changeset/base/351083

Log:
  Fix i386 LINT build after r351056.
  
  MFC after:	13 days

Modified:
  head/sys/dev/ntb/ntb_hw/ntb_hw_amd.c

Modified: head/sys/dev/ntb/ntb_hw/ntb_hw_amd.c
==============================================================================
--- head/sys/dev/ntb/ntb_hw/ntb_hw_amd.c	Thu Aug 15 16:09:27 2019	(r351082)
+++ head/sys/dev/ntb/ntb_hw/ntb_hw_amd.c	Thu Aug 15 16:22:15 2019	(r351083)
@@ -385,14 +385,14 @@ amd_ntb_mw_set_trans(device_t dev, unsigned mw_idx, bu
 
 	/* Make sure the range fits in the usable mw size. */
 	if (size > bar_info->size) {
-		amd_ntb_printf(0, "%s: size 0x%x greater than mw_size 0x%x\n",
-		    __func__, (uint32_t)size, (uint32_t)bar_info->size);
+		amd_ntb_printf(0, "%s: size 0x%jx greater than mw_size 0x%jx\n",
+		    __func__, (uintmax_t)size, (uintmax_t)bar_info->size);
 		return (EINVAL);
 	}
 
-	amd_ntb_printf(1, "%s: mw %d mw_size 0x%x size 0x%x base %p\n",
-	    __func__, mw_idx, (uint32_t)bar_info->size,
-	    (uint32_t)size, (void *)bar_info->pci_bus_handle);
+	amd_ntb_printf(1, "%s: mw %d mw_size 0x%jx size 0x%jx base %p\n",
+	    __func__, mw_idx, (uintmax_t)bar_info->size,
+	    (uintmax_t)size, (void *)bar_info->pci_bus_handle);
 
 	/*
 	 * AMD NTB XLAT and Limit registers needs to be written only after
@@ -413,17 +413,17 @@ amd_ntb_mw_set_trans(device_t dev, unsigned mw_idx, bu
 	 * cases all use 64-bit bar.
 	 */
 	if ((mw_idx == 0) && (ntb->hw_info->quirks & QUIRK_MW0_32BIT)) {
-		amd_ntb_reg_write(4, bar_info->limit_off, (uint64_t)size);
+		amd_ntb_reg_write(4, bar_info->limit_off, (uint32_t)size);
 		amd_ntb_printf(1, "%s: limit_off 0x%x cur_val 0x%x limit 0x%x\n",
 		    __func__, bar_info->limit_off,
 		    amd_ntb_peer_reg_read(4, bar_info->limit_off),
 		    (uint32_t)size);
 	} else {
 		amd_ntb_reg_write(8, bar_info->limit_off, (uint64_t)size);
-		amd_ntb_printf(1, "%s: limit_off 0x%x cur_val 0x%lx limit 0x%x\n",
+		amd_ntb_printf(1, "%s: limit_off 0x%x cur_val 0x%jx limit 0x%jx\n",
 		    __func__, bar_info->limit_off,
 		    amd_ntb_peer_reg_read(8, bar_info->limit_off),
-		    (uint32_t)size);
+		    (uintmax_t)size);
 	}
 
 	return (0);



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