Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Make this compile with options DEBUG (part of PR...



details:   https://anonhg.NetBSD.org/src/rev/3f8f4c051051
branches:  trunk
changeset: 550862:3f8f4c051051
user:      cjep <cjep%NetBSD.org@localhost>
date:      Sat Aug 23 20:37:18 2003 +0000

description:
Make this compile with options DEBUG (part of PR#22582 from Frank Kardel).

diffstat:

 sys/dev/pci/if_bge.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 42e4a853aacf -r 3f8f4c051051 sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c      Sat Aug 23 16:42:41 2003 +0000
+++ b/sys/dev/pci/if_bge.c      Sat Aug 23 20:37:18 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bge.c,v 1.46 2003/08/22 03:32:35 jonathan Exp $     */
+/*     $NetBSD: if_bge.c,v 1.47 2003/08/23 20:37:18 cjep Exp $ */
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.46 2003/08/22 03:32:35 jonathan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.47 2003/08/23 20:37:18 cjep Exp $");
 
 #include "bpfilter.h"
 #include "vlan.h"
@@ -2803,8 +2803,8 @@
        }
 
 #ifdef DEBUG
-         KASSERT(M_WRITABLE(last), ("to-pad mbuf not writeable\n"));
-         KASSERT(M_TRAILINGSPACE(last) >= padlen, ("insufficient space to pad\n"));
+         KASSERT(M_WRITABLE(last) /*, ("to-pad mbuf not writeable\n")*/ );
+         KASSERT(M_TRAILINGSPACE(last) >= padlen /*, ("insufficient space to pad\n")*/ );
 #endif
        /* Now zero the pad area, to avoid the bge cksum-assist bug */
        memset(mtod(last, caddr_t) + last->m_len, 0, padlen);



Home | Main Index | Thread Index | Old Index