Date: Sun, 15 Mar 2015 21:00:11 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r280090 - in head/sys/dev/virtio: mmio pci Message-ID: <201503152100.t2FL0BW0076156@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Sun Mar 15 21:00:10 2015 New Revision: 280090 URL: https://svnweb.freebsd.org/changeset/base/280090 Log: Hide virtio features negotiation messages under bootverbose. Those messages are noisy, but useless for average user. MFC after: 2 weeks Modified: head/sys/dev/virtio/mmio/virtio_mmio.c head/sys/dev/virtio/pci/virtio_pci.c Modified: head/sys/dev/virtio/mmio/virtio_mmio.c ============================================================================== --- head/sys/dev/virtio/mmio/virtio_mmio.c Sun Mar 15 20:55:23 2015 (r280089) +++ head/sys/dev/virtio/mmio/virtio_mmio.c Sun Mar 15 21:00:10 2015 (r280090) @@ -702,7 +702,7 @@ vtmmio_describe_features(struct vtmmio_s dev = sc->dev; child = sc->vtmmio_child_dev; - if (device_is_attached(child) && bootverbose == 0) + if (device_is_attached(child) || bootverbose == 0) return; virtio_describe(dev, msg, features, sc->vtmmio_child_feat_desc); Modified: head/sys/dev/virtio/pci/virtio_pci.c ============================================================================== --- head/sys/dev/virtio/pci/virtio_pci.c Sun Mar 15 20:55:23 2015 (r280089) +++ head/sys/dev/virtio/pci/virtio_pci.c Sun Mar 15 21:00:10 2015 (r280090) @@ -730,7 +730,7 @@ vtpci_describe_features(struct vtpci_sof dev = sc->vtpci_dev; child = sc->vtpci_child_dev; - if (device_is_attached(child) && bootverbose == 0) + if (device_is_attached(child) || bootverbose == 0) return; virtio_describe(dev, msg, features, sc->vtpci_child_feat_desc);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503152100.t2FL0BW0076156>