Date: Sun, 23 Dec 2007 22:52:58 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 131495 for review Message-ID: <200712232252.lBNMqw5r032153@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=131495 Change 131495 by rwatson@rwatson_cinnamon on 2007/12/23 22:52:50 Remove commented out debugging printfs. Affected files ... .. //depot/projects/zcopybpf/src/sys/net/bpf_buffer.c#4 edit Differences ... ==== //depot/projects/zcopybpf/src/sys/net/bpf_buffer.c#4 (text+ko) ==== @@ -100,8 +100,6 @@ KASSERT(d->bd_sbuf == NULL, ("bpf_buffer_alloc: bd_sbuf != NULL")); KASSERT(d->bd_hbuf == NULL, ("bpf_buffer_alloc: bd_hbuf != NULL")); - // printf("bpf_buffer_alloc size %d\n", d->bd_bufsize); - d->bd_fbuf = (caddr_t)malloc(d->bd_bufsize, M_BPF, M_WAITOK); d->bd_sbuf = (caddr_t)malloc(d->bd_bufsize, M_BPF, M_WAITOK); d->bd_hbuf = NULL; @@ -118,8 +116,6 @@ { u_char *src_bytes; - // printf("bpf_buffer_append_bytes size %d\n", len); - src_bytes = (u_char *)src; bcopy(src_bytes, buf + offset, len); } @@ -135,8 +131,6 @@ u_char *dst; u_int count; - // printf("bpf_buffer_append_mbuf size %d\n", len); - m = (struct mbuf *)src; dst = (u_char *)buf + offset; while (len > 0) { @@ -157,9 +151,6 @@ bpf_buffer_free(struct bpf_d *d) { - // printf("bpf_buffer_free(sbuf: %p, hbuf: %p, fbuf: %p)\n", - // d->bd_sbuf, d->bd_hbuf, d->bd_fbuf); - if (d->bd_sbuf != NULL) free(d->bd_sbuf, M_BPF); if (d->bd_hbuf != NULL) @@ -181,8 +172,6 @@ bpf_buffer_init(struct bpf_d *d) { - // printf("bpf_buffer_init: bufsize %d\n", bpf_bufsize); - d->bd_bufsize = bpf_bufsize; } @@ -194,8 +183,6 @@ { u_int size; - // printf("bpf_buffer_ioctl_sblen %d\n", *i); - BPFD_LOCK(d); if (d->bd_bif != NULL) { BPFD_UNLOCK(d); @@ -208,8 +195,6 @@ *i = size = BPF_MINBUFSIZE; d->bd_bufsize = size; BPFD_UNLOCK(d); - - // printf("bpf_buffer_ioctl_sblen (req: %d, set: %d)\n", *i, size); return (0); } @@ -220,7 +205,5 @@ bpf_buffer_uiomove(struct bpf_d *d, caddr_t buf, u_int len, struct uio *uio) { - // printf("bpf_buffer_uiomove %d bytes\n", len); - return (uiomove(buf, len, uio)); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712232252.lBNMqw5r032153>