Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Duh, remove accidently left over debug printfs



details:   https://anonhg.NetBSD.org/src/rev/b78ad4e33691
branches:  trunk
changeset: 822587:b78ad4e33691
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Mar 26 13:51:45 2017 +0000

description:
Duh, remove accidently left over debug printfs

diffstat:

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

diffs (45 lines):

diff -r 14296a4ae21b -r b78ad4e33691 sys/dev/pci/virtio.c
--- a/sys/dev/pci/virtio.c      Sun Mar 26 12:59:29 2017 +0000
+++ b/sys/dev/pci/virtio.c      Sun Mar 26 13:51:45 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: virtio.c,v 1.24 2017/03/26 12:36:43 martin Exp $       */
+/*     $NetBSD: virtio.c,v 1.25 2017/03/26 13:51:45 martin Exp $       */
 
 /*
  * Copyright (c) 2010 Minoura Makoto.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: virtio.c,v 1.24 2017/03/26 12:36:43 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: virtio.c,v 1.25 2017/03/26 13:51:45 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -844,8 +844,6 @@
        if (vq->vq_indirect != NULL) {
                struct vring_desc *vd;
 
-printf("vq_size: %d, vq_maxnsegs: %d\n", vq_size, vq->vq_maxnsegs);
-
                for (i = 0; i < vq_size; i++) {
                        vd = vq->vq_indirect;
                        vd += vq->vq_maxnsegs * i;
@@ -917,8 +915,6 @@
        else
                allocsize3 = 0;
        allocsize = allocsize1 + allocsize2 + allocsize3;
-printf("virtio: allocsize1: %d, allocsize2: %d, allocsize3: %d\n",
-   allocsize1, allocsize2, allocsize3);
 
        /* alloc and map the memory */
        r = bus_dmamem_alloc(sc->sc_dmat, allocsize, VIRTIO_PAGE_SIZE, 0,
@@ -973,8 +969,6 @@
                vq->vq_indirectoffset = allocsize1 + allocsize2;
                vq->vq_indirect = (void*)(((char*)vq->vq_desc)
                                          + vq->vq_indirectoffset);
-printf("virtio: vq_indirectoffset: %d, vq_indirect: %p\n",
-    vq->vq_indirectoffset, vq->vq_indirect);
        }
        vq->vq_bytesize = allocsize;
        vq->vq_maxsegsize = maxsegsize;



Home | Main Index | Thread Index | Old Index