debug printfs about LDC link state changes. No functional change.
ok kettenis@
-/* $OpenBSD: vcctty.c,v 1.12 2015/01/25 21:42:13 kettenis Exp $ */
+/* $OpenBSD: vcctty.c,v 1.13 2018/01/17 15:52:33 stsp Exp $ */
/*
* Copyright (c) 2009 Mark Kettenis
*
if (tx_state != lc->lc_tx_state) {
switch (tx_state) {
case LDC_CHANNEL_DOWN:
- DPRINTF(("Tx link down\n"));
+ DPRINTF(("%s: Tx link down\n", __func__));
break;
case LDC_CHANNEL_UP:
- DPRINTF(("Tx link up\n"));
+ DPRINTF(("%s: Tx link up\n", __func__));
break;
case LDC_CHANNEL_RESET:
- DPRINTF(("Tx link reset\n"));
+ DPRINTF(("%s: Tx link reset\n", __func__));
break;
}
lc->lc_tx_state = tx_state;
if (rx_state != lc->lc_rx_state) {
switch (rx_state) {
case LDC_CHANNEL_DOWN:
- DPRINTF(("Rx link down\n"));
+ DPRINTF(("%s: Rx link down\n", __func__));
break;
case LDC_CHANNEL_UP:
- DPRINTF(("Rx link up\n"));
+ DPRINTF(("%s: Rx link up\n", __func__));
break;
case LDC_CHANNEL_RESET:
- DPRINTF(("Rx link reset\n"));
+ DPRINTF(("%s: Rx link reset\n", __func__));
break;
}
lc->lc_rx_state = rx_state;
-/* $OpenBSD: vdsk.c,v 1.48 2017/05/25 03:19:39 dlg Exp $ */
+/* $OpenBSD: vdsk.c,v 1.49 2018/01/17 15:52:34 stsp Exp $ */
/*
* Copyright (c) 2009, 2011 Mark Kettenis
*
if (tx_state != lc->lc_tx_state) {
switch (tx_state) {
case LDC_CHANNEL_DOWN:
- DPRINTF(("Tx link down\n"));
+ DPRINTF(("%s: Tx link down\n", __func__));
break;
case LDC_CHANNEL_UP:
- DPRINTF(("Tx link up\n"));
+ DPRINTF(("%s: Tx link up\n", __func__));
break;
case LDC_CHANNEL_RESET:
- DPRINTF(("Tx link reset\n"));
+ DPRINTF(("%s: Tx link reset\n", __func__));
break;
}
lc->lc_tx_state = tx_state;
lc->lc_state = 0;
switch (rx_state) {
case LDC_CHANNEL_DOWN:
- DPRINTF(("Rx link down\n"));
+ DPRINTF(("%s: Rx link down\n", __func__));
break;
case LDC_CHANNEL_UP:
- DPRINTF(("Rx link up\n"));
+ DPRINTF(("%s: Rx link up\n", __func__));
ldc_send_vers(lc);
break;
case LDC_CHANNEL_RESET:
- DPRINTF(("Rx link reset\n"));
+ DPRINTF(("%s: Rx link reset\n", __func__));
break;
}
lc->lc_rx_state = rx_state;
-/* $OpenBSD: vdsp.c,v 1.42 2016/03/19 12:04:15 natano Exp $ */
+/* $OpenBSD: vdsp.c,v 1.43 2018/01/17 15:52:34 stsp Exp $ */
/*
* Copyright (c) 2009, 2011, 2014 Mark Kettenis
*
if (tx_state != lc->lc_tx_state) {
switch (tx_state) {
case LDC_CHANNEL_DOWN:
- DPRINTF(("Tx link down\n"));
+ DPRINTF(("%s: Tx link down\n", __func__));
break;
case LDC_CHANNEL_UP:
- DPRINTF(("Tx link up\n"));
+ DPRINTF(("%s: Tx link up\n", __func__));
break;
case LDC_CHANNEL_RESET:
- DPRINTF(("Tx link reset\n"));
+ DPRINTF(("%s: Tx link reset\n", __func__));
break;
}
lc->lc_tx_state = tx_state;
if (rx_state != lc->lc_rx_state) {
switch (rx_state) {
case LDC_CHANNEL_DOWN:
- DPRINTF(("Rx link down\n"));
+ DPRINTF(("%s: Rx link down\n", __func__));
lc->lc_tx_seqid = 0;
lc->lc_state = 0;
lc->lc_reset(lc);
break;
case LDC_CHANNEL_UP:
- DPRINTF(("Rx link up\n"));
+ DPRINTF(("%s: Rx link up\n", __func__));
break;
case LDC_CHANNEL_RESET:
- DPRINTF(("Rx link reset\n"));
+ DPRINTF(("%s: Rx link reset\n", __func__));
lc->lc_tx_seqid = 0;
lc->lc_state = 0;
lc->lc_reset(lc);
-/* $OpenBSD: vldcp.c,v 1.14 2018/01/13 15:10:02 stsp Exp $ */
+/* $OpenBSD: vldcp.c,v 1.15 2018/01/17 15:52:34 stsp Exp $ */
/*
* Copyright (c) 2009, 2012 Mark Kettenis
*
if (tx_state != lc->lc_tx_state) {
switch (tx_state) {
case LDC_CHANNEL_DOWN:
- DPRINTF(("Tx link down\n"));
+ DPRINTF(("%s: Tx link down\n", __func__));
break;
case LDC_CHANNEL_UP:
- DPRINTF(("Tx link up\n"));
+ DPRINTF(("%s: Tx link up\n", __func__));
break;
case LDC_CHANNEL_RESET:
- DPRINTF(("Tx link reset\n"));
+ DPRINTF(("%s: Tx link reset\n", __func__));
break;
}
lc->lc_tx_state = tx_state;
if (rx_state != lc->lc_rx_state) {
switch (rx_state) {
case LDC_CHANNEL_DOWN:
- DPRINTF(("Rx link down\n"));
+ DPRINTF(("%s: Rx link down\n", __func__));
if (rx_head == rx_tail)
break;
/* Discard and ack pending I/O. */
printf("%s: hv_ldc_rx_set_qhead %d\n", __func__, err);
break;
case LDC_CHANNEL_UP:
- DPRINTF(("Rx link up\n"));
+ DPRINTF(("%s: Rx link up\n", __func__));
break;
case LDC_CHANNEL_RESET:
- DPRINTF(("Rx link reset\n"));
+ DPRINTF(("%s: Rx link reset\n", __func__));
break;
}
lc->lc_rx_state = rx_state;
-/* $OpenBSD: vnet.c,v 1.58 2017/01/22 10:17:37 dlg Exp $ */
+/* $OpenBSD: vnet.c,v 1.59 2018/01/17 15:52:34 stsp Exp $ */
/*
* Copyright (c) 2009, 2015 Mark Kettenis
*
if (tx_state != lc->lc_tx_state) {
switch (tx_state) {
case LDC_CHANNEL_DOWN:
- DPRINTF(("Tx link down\n"));
+ DPRINTF(("%s: Tx link down\n", __func__));
break;
case LDC_CHANNEL_UP:
- DPRINTF(("Tx link up\n"));
+ DPRINTF(("%s: Tx link up\n", __func__));
break;
case LDC_CHANNEL_RESET:
- DPRINTF(("Tx link reset\n"));
+ DPRINTF(("%s: Tx link reset\n", __func__));
break;
}
lc->lc_tx_state = tx_state;
if (rx_state != lc->lc_rx_state) {
switch (rx_state) {
case LDC_CHANNEL_DOWN:
- DPRINTF(("Rx link down\n"));
+ DPRINTF(("%s: Rx link down\n", __func__));
lc->lc_tx_seqid = 0;
lc->lc_state = 0;
lc->lc_reset(lc);
break;
case LDC_CHANNEL_UP:
- DPRINTF(("Rx link up\n"));
+ DPRINTF(("%s: Rx link up\n", __func__));
timeout_add_msec(&sc->sc_handshake_to, 500);
break;
case LDC_CHANNEL_RESET:
- DPRINTF(("Rx link reset\n"));
+ DPRINTF(("%s: Rx link reset\n", __func__));
lc->lc_tx_seqid = 0;
lc->lc_state = 0;
lc->lc_reset(lc);