Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Suppress "not configured" message when no device...



details:   https://anonhg.NetBSD.org/src/rev/40d41eb6f6da
branches:  trunk
changeset: 433745:40d41eb6f6da
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Sep 30 15:44:22 2018 +0000

description:
Suppress "not configured" message when no device is present

diffstat:

 sys/dev/pci/virtio.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r fde9548c1686 -r 40d41eb6f6da sys/dev/pci/virtio.c
--- a/sys/dev/pci/virtio.c      Sun Sep 30 15:31:05 2018 +0000
+++ b/sys/dev/pci/virtio.c      Sun Sep 30 15:44:22 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: virtio.c,v 1.35 2018/06/15 17:13:43 jakllsch Exp $     */
+/*     $NetBSD: virtio.c,v 1.36 2018/09/30 15:44:22 jmcneill Exp $     */
 
 /*
  * Copyright (c) 2010 Minoura Makoto.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: virtio.c,v 1.35 2018/06/15 17:13:43 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: virtio.c,v 1.36 2018/09/30 15:44:22 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -933,6 +933,9 @@
 {
        struct virtio_attach_args * const va = aux;
 
+       if (va->sc_childdevid == 0)
+               return QUIET;   /* No device present */
+
        if (pnp)
                aprint_normal("Device ID %d at %s", va->sc_childdevid, pnp);
 



Home | Main Index | Thread Index | Old Index