Module Name:    src
Committed By:   msaitoh
Date:           Fri Feb 24 05:04:46 UTC 2017

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

Log Message:
Fix 0x%u...


To generate a diff of this commit:
cvs rdiff -u -r1.157 -r1.158 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.157 src/sys/dev/pci/pci_subr.c:1.158
--- src/sys/dev/pci/pci_subr.c:1.157	Wed Feb 15 06:53:55 2017
+++ src/sys/dev/pci/pci_subr.c	Fri Feb 24 05:04:46 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: pci_subr.c,v 1.157 2017/02/15 06:53:55 msaitoh Exp $	*/
+/*	$NetBSD: pci_subr.c,v 1.158 2017/02/24 05:04:46 msaitoh 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.157 2017/02/15 06:53:55 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.158 2017/02/24 05:04:46 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_pci.h"
@@ -2370,7 +2370,7 @@ pci_conf_print_aer_cap_rooterr_status(pc
 	onoff("First Uncorrectable Fatal", reg, PCI_AER_ROOTERR_FIRST_UC_FATAL);
 	onoff("Non-Fatal Error Messages Received", reg, PCI_AER_ROOTERR_NF_ERR);
 	onoff("Fatal Error Messages Received", reg, PCI_AER_ROOTERR_F_ERR);
-	printf("      Advanced Error Interrupt Message Number: 0x%u\n",
+	printf("      Advanced Error Interrupt Message Number: 0x%02x\n",
 	    (pcireg_t)__SHIFTOUT(reg, PCI_AER_ROOTERR_INT_MESSAGE));
 }
 
@@ -2930,7 +2930,7 @@ pci_conf_print_sriov_cap(const pcireg_t 
 	onoff("ARI Capable Hierarchy Preserved", reg,
 	    PCI_SRIOV_CAP_ARI_CAP_HIER_PRESERVED);
 	if (reg & PCI_SRIOV_CAP_VF_MIGRATION) {
-		printf("      VF Migration Interrupt Message Number: 0x%u\n",
+		printf("      VF Migration Interrupt Message Number: 0x%03x\n",
 		    (pcireg_t)__SHIFTOUT(reg,
 		      PCI_SRIOV_CAP_VF_MIGRATION_INTMSG_N));
 	}

Reply via email to