Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic fix debugging printfs
details: https://anonhg.NetBSD.org/src/rev/08a58d7e9eb7
branches: trunk
changeset: 551210:08a58d7e9eb7
user: christos <christos%NetBSD.org@localhost>
date: Mon Sep 01 16:44:03 2003 +0000
description:
fix debugging printfs
diffstat:
sys/dev/ic/com.c | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diffs (50 lines):
diff -r 4c2baa71f8fa -r 08a58d7e9eb7 sys/dev/ic/com.c
--- a/sys/dev/ic/com.c Mon Sep 01 15:40:46 2003 +0000
+++ b/sys/dev/ic/com.c Mon Sep 01 16:44:03 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.217 2003/08/07 16:31:00 agc Exp $ */
+/* $NetBSD: com.c,v 1.218 2003/09/01 16:44:03 christos Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.217 2003/08/07 16:31:00 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.218 2003/09/01 16:44:03 christos Exp $");
#include "opt_com.h"
#include "opt_ddb.h"
@@ -299,20 +299,20 @@
{
struct tty *tp = sc->sc_tty;
- printf("%s: %s %sclocal %sdcd %sts_carr_on %sdtr %stx_stopped\n",
+ printf("%s: %s %cclocal %cdcd %cts_carr_on %cdtr %ctx_stopped\n",
sc->sc_dev.dv_xname, str,
- ISSET(tp->t_cflag, CLOCAL) ? "+" : "-",
- ISSET(sc->sc_msr, MSR_DCD) ? "+" : "-",
- ISSET(tp->t_state, TS_CARR_ON) ? "+" : "-",
- ISSET(sc->sc_mcr, MCR_DTR) ? "+" : "-",
- sc->sc_tx_stopped ? "+" : "-");
+ ISSET(tp->t_cflag, CLOCAL) ? '+' : '-',
+ ISSET(sc->sc_msr, MSR_DCD) ? '+' : '-',
+ ISSET(tp->t_state, TS_CARR_ON) ? '+' : '-',
+ ISSET(sc->sc_mcr, MCR_DTR) ? '+' : '-',
+ sc->sc_tx_stopped ? '+' : '-');
- printf("%s: %s %scrtscts %scts %sts_ttstop %srts %xrx_flags\n",
+ printf("%s: %s %ccrtscts %ccts %cts_ttstop %crts rx_flags=0x%x\n",
sc->sc_dev.dv_xname, str,
- ISSET(tp->t_cflag, CRTSCTS) ? "+" : "-",
- ISSET(sc->sc_msr, MSR_CTS) ? "+" : "-",
- ISSET(tp->t_state, TS_TTSTOP) ? "+" : "-",
- ISSET(sc->sc_mcr, MCR_RTS) ? "+" : "-",
+ ISSET(tp->t_cflag, CRTSCTS) ? '+' : '-',
+ ISSET(sc->sc_msr, MSR_CTS) ? '+' : '-',
+ ISSET(tp->t_state, TS_TTSTOP) ? '+' : '-',
+ ISSET(sc->sc_mcr, MCR_RTS) ? '+' : '-',
sc->sc_rx_flags);
}
#endif
Home |
Main Index |
Thread Index |
Old Index