Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Don't print extra newline if the PCI extended co...
details: https://anonhg.NetBSD.org/src/rev/130258fb61c7
branches: trunk
changeset: 433783:130258fb61c7
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Oct 04 07:43:12 2018 +0000
description:
Don't print extra newline if the PCI extended configuration space doesn't exist.
diffstat:
sys/dev/pci/pci_subr.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (40 lines):
diff -r f7189df1192e -r 130258fb61c7 sys/dev/pci/pci_subr.c
--- a/sys/dev/pci/pci_subr.c Thu Oct 04 07:40:09 2018 +0000
+++ b/sys/dev/pci/pci_subr.c Thu Oct 04 07:43:12 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_subr.c,v 1.205 2018/10/03 06:46:09 msaitoh Exp $ */
+/* $NetBSD: pci_subr.c,v 1.206 2018/10/04 07:43:12 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.205 2018/10/03 06:46:09 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.206 2018/10/04 07:43:12 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "opt_pci.h"
@@ -4714,19 +4714,19 @@
/* device-dependent header */
printf(" Device-dependent header:\n");
pci_conf_print_regs(regs, endoff, PCI_CONF_SIZE);
+#ifdef _KERNEL
printf("\n");
-#ifdef _KERNEL
if (printfn)
(*printfn)(pc, tag, regs);
else
printf(" Don't know how to pretty-print device-dependent header.\n");
- printf("\n");
#endif /* _KERNEL */
if (regs[o2i(PCI_EXTCAPLIST_BASE)] == 0xffffffff ||
regs[o2i(PCI_EXTCAPLIST_BASE)] == 0)
return;
+ printf("\n");
#ifdef _KERNEL
pci_conf_print_extcaplist(pc, tag, regs);
#else
Home |
Main Index |
Thread Index |
Old Index