Module Name:    src
Committed By:   flxd
Date:           Thu Jun 15 15:38:18 UTC 2017

Modified Files:
        src/sys/dev/pci: pci_subr.c

Log Message:
Fix printf format/argument.


To generate a diff of this commit:
cvs rdiff -u -r1.188 -r1.189 src/sys/dev/pci/pci_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/pci_subr.c
diff -u src/sys/dev/pci/pci_subr.c:1.188 src/sys/dev/pci/pci_subr.c:1.189
--- src/sys/dev/pci/pci_subr.c:1.188	Thu Jun 15 06:51:18 2017
+++ src/sys/dev/pci/pci_subr.c	Thu Jun 15 15:38:18 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: pci_subr.c,v 1.188 2017/06/15 06:51:18 msaitoh Exp $	*/
+/*	$NetBSD: pci_subr.c,v 1.189 2017/06/15 15:38:18 flxd Exp $	*/
 
 /*
  * Copyright (c) 1997 Zubin D. Dittia.  All rights reserved.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.188 2017/06/15 06:51:18 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.189 2017/06/15 15:38:18 flxd Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_pci.h"
@@ -3505,13 +3505,13 @@ pci_conf_print_ltr_cap(const pcireg_t *r
 	printf("\n  Latency Tolerance Reporting\n");
 	reg = regs[o2i(extcapoff + PCI_LTR_MAXSNOOPLAT)];
 	printf("    Max Snoop Latency Register: 0x%04x\n", reg & 0xffff);
-	printf("      Max Snoop Latency: %luns\n",
-	    __SHIFTOUT(reg, PCI_LTR_MAXSNOOPLAT_VAL)
-	    * PCI_LTR_SCALETONS(__SHIFTOUT(reg, PCI_LTR_MAXSNOOPLAT_SCALE)));
+	printf("      Max Snoop Latency: %juns\n",
+	    (uintmax_t)(__SHIFTOUT(reg, PCI_LTR_MAXSNOOPLAT_VAL)
+	    * PCI_LTR_SCALETONS(__SHIFTOUT(reg, PCI_LTR_MAXSNOOPLAT_SCALE))));
 	printf("    Max No-Snoop Latency Register: 0x%04x\n", reg >> 16);
-	printf("      Max No-Snoop Latency: %luns\n",
-	    __SHIFTOUT(reg, PCI_LTR_MAXNOSNOOPLAT_VAL)
-	    * PCI_LTR_SCALETONS(__SHIFTOUT(reg, PCI_LTR_MAXNOSNOOPLAT_SCALE)));
+	printf("      Max No-Snoop Latency: %juns\n",
+	    (uintmax_t)(__SHIFTOUT(reg, PCI_LTR_MAXNOSNOOPLAT_VAL)
+	    * PCI_LTR_SCALETONS(__SHIFTOUT(reg, PCI_LTR_MAXNOSNOOPLAT_SCALE))));
 }
 
 static void

Reply via email to