Module Name:    src
Committed By:   christos
Date:           Fri Oct  1 17:02:35 UTC 2010

Modified Files:
        src/sys/dev/usb: ucom.c

Log Message:
remove debugging statements that have no chance of working (they crash)
since they are called from a context where we cannot log.


To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 src/sys/dev/usb/ucom.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/ucom.c
diff -u src/sys/dev/usb/ucom.c:1.83 src/sys/dev/usb/ucom.c:1.84
--- src/sys/dev/usb/ucom.c:1.83	Sat Feb 20 09:52:22 2010
+++ src/sys/dev/usb/ucom.c	Fri Oct  1 13:02:35 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: ucom.c,v 1.83 2010/02/20 14:52:22 pooka Exp $	*/
+/*	$NetBSD: ucom.c,v 1.84 2010/10/01 17:02:35 christos Exp $	*/
 
 /*
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.83 2010/02/20 14:52:22 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.84 2010/10/01 17:02:35 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -982,10 +982,8 @@
 		return;
 
 	s = spltty();
-	if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP)) {
-		DPRINTFN(4,("ucomstart: no go, state=0x%x\n", tp->t_state));
+	if (ISSET(tp->t_state, TS_BUSY | TS_TIMEOUT | TS_TTSTOP))
 		goto out;
-	}
 	if (sc->sc_tx_stopped)
 		goto out;
 
@@ -996,10 +994,8 @@
 	data = tp->t_outq.c_cf;
 	cnt = ndqb(&tp->t_outq, 0);
 
-	if (cnt == 0) {
-		DPRINTF(("ucomstart: cnt==0\n"));
+	if (cnt == 0)
 		goto out;
-	}
 
 	ub = SIMPLEQ_FIRST(&sc->sc_obuff_free);
 	KASSERT(ub != NULL);
@@ -1031,7 +1027,6 @@
 void
 ucomstop(struct tty *tp, int flag)
 {
-	DPRINTF(("ucomstop: flag=%d\n", flag));
 #if 0
 	/*struct ucom_softc *sc =
 	    device_lookup_private(&ucom_cd, UCOMUNIT(dev));*/
@@ -1039,7 +1034,6 @@
 
 	s = spltty();
 	if (ISSET(tp->t_state, TS_BUSY)) {
-		DPRINTF(("ucomstop: XXX\n"));
 		/* sc->sc_tx_stopped = 1; */
 		if (!ISSET(tp->t_state, TS_TTSTOP))
 			SET(tp->t_state, TS_FLUSH);

Reply via email to