Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Sep 2017 01:06:35 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r323295 - head/sys/x86/x86
Message-ID:  <201709080106.v8816ZsY041334@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Fri Sep  8 01:06:35 2017
New Revision: 323295
URL: https://svnweb.freebsd.org/changeset/base/323295

Log:
  mca: Fix printf types from r323289 on i386
  
  Reported by:	Michael Butler <imb AT protected-networks.net>
  Sponsored by:	Dell EMC Isilon

Modified:
  head/sys/x86/x86/mca.c

Modified: head/sys/x86/x86/mca.c
==============================================================================
--- head/sys/x86/x86/mca.c	Fri Sep  8 00:11:58 2017	(r323294)
+++ head/sys/x86/x86/mca.c	Fri Sep  8 01:06:35 2017	(r323295)
@@ -982,13 +982,14 @@ amd_thresholding_init(void)
 	misc = rdmsr(MSR_MC_MISC(MC_AMDNB_BANK));
 	if ((misc & (MC_MISC_AMDNB_VAL | MC_MISC_AMDNB_CNTP)) !=
 	    (MC_MISC_AMDNB_VAL | MC_MISC_AMDNB_CNTP)) {
-		printf("%s: 0x%lx: !valid | !present\n", __func__, misc);
+		printf("%s: 0x%jx: !valid | !present\n", __func__,
+		    (uintmax_t)misc);
 		return;
 	}
 
 	/* The register should not be locked. */
 	if ((misc & MC_MISC_AMDNB_LOCK) != 0) {
-		printf("%s: 0x%lx: locked\n", __func__, misc);
+		printf("%s: 0x%jx: locked\n", __func__, (uintmax_t)misc);
 		return;
 	}
 
@@ -997,7 +998,8 @@ amd_thresholding_init(void)
 	 * has already claimed it.
 	 */
 	if ((misc & MC_MISC_AMDNB_CNTEN) != 0) {
-		printf("%s: 0x%lx: count already enabled\n", __func__, misc);
+		printf("%s: 0x%jx: count already enabled\n", __func__,
+		    (uintmax_t)misc);
 		return;
 	}
 



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