Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Fix printf format/argument.
details: https://anonhg.NetBSD.org/src/rev/ed512bd94ea3
branches: trunk
changeset: 354409:ed512bd94ea3
user: flxd <flxd%NetBSD.org@localhost>
date: Thu Jun 15 15:38:18 2017 +0000
description:
Fix printf format/argument.
diffstat:
sys/dev/pci/pci_subr.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (38 lines):
diff -r 4a6fe02b1688 -r ed512bd94ea3 sys/dev/pci/pci_subr.c
--- a/sys/dev/pci/pci_subr.c Thu Jun 15 15:22:36 2017 +0000
+++ b/sys/dev/pci/pci_subr.c Thu Jun 15 15:38:18 2017 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index