summaryrefslogtreecommitdiff
path: root/sys/netiso/tp_emit.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netiso/tp_emit.c')
-rw-r--r--sys/netiso/tp_emit.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/sys/netiso/tp_emit.c b/sys/netiso/tp_emit.c
index 12b8f8cc3f1..dd06e957469 100644
--- a/sys/netiso/tp_emit.c
+++ b/sys/netiso/tp_emit.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: tp_emit.c,v 1.2 1996/03/04 10:35:56 mickey Exp $ */
-/* $NetBSD: tp_emit.c,v 1.7 1996/02/13 22:10:54 christos Exp $ */
+/* $OpenBSD: tp_emit.c,v 1.3 1996/04/21 22:29:43 deraadt Exp $ */
+/* $NetBSD: tp_emit.c,v 1.8 1996/03/16 23:13:48 christos Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -185,7 +185,7 @@ tp_emit(dutype, tpcb, seq, eot, data)
#ifdef ARGO_DEBUG
if (argo_debug[D_EMIT]) {
printf(
- "tp_emit dutype 0x%x, tpcb 0x%x, eot 0x%x, seq 0x%x, data 0x%x",
+ "tp_emit dutype 0x%x, tpcb %p, eot 0x%x, seq 0x%x, data %p",
dutype, tpcb, eot, seq, data);
}
#endif
@@ -456,7 +456,7 @@ tp_emit(dutype, tpcb, seq, eot, data)
} else if (tpcb->tp_class == TP_CLASS_0) {
#ifdef ARGO_DEBUG
if (argo_debug[D_EMIT]) {
- printf("DT tpdu: class 0 m 0x%x hdr 0x%x\n", m, hdr);
+ printf("DT tpdu: class 0 m %p hdr %p\n", m, hdr);
dump_buf(hdr, hdr->tpdu_li + 1);
}
#endif
@@ -464,7 +464,7 @@ tp_emit(dutype, tpcb, seq, eot, data)
((struct tp0du *) hdr)->tp0du_mbz = 0;
#ifdef ARGO_DEBUG
if (argo_debug[D_EMIT]) {
- printf("DT 2 tpdu: class 0 m 0x%x hdr 0x%x\n", m, hdr);
+ printf("DT 2 tpdu: class 0 m %p hdr %p\n", m, hdr);
dump_buf(hdr, hdr->tpdu_li + 1);
}
#endif
@@ -668,7 +668,7 @@ tp_emit(dutype, tpcb, seq, eot, data)
#ifdef ARGO_DEBUG
if (argo_debug[D_ACKSEND]) {
- printf("Calling ADDOPTION 0x%x, 0x%x, 0x%x,0x%x\n",
+ printf("Calling ADDOPTION 0x%x, %p, 0x%x,0x%x\n",
TPP_flow_cntl_conf,
hdr, sizeof(bogus), bogus[0]);
}
@@ -676,7 +676,7 @@ tp_emit(dutype, tpcb, seq, eot, data)
ADDOPTION(TPP_flow_cntl_conf, hdr, sizeof(bogus), bogus[0]);
#ifdef ARGO_DEBUG
if (argo_debug[D_ACKSEND]) {
- printf("after ADDOPTION hdr 0x%x hdr->tpdu_li 0x%x\n",
+ printf("after ADDOPTION hdr %p hdr->tpdu_li 0x%x\n",
hdr, hdr->tpdu_li);
printf(
"after ADDOPTION csum_offset 0x%x, hdr->tpdu_li 0x%x\n",
@@ -755,7 +755,7 @@ tp_emit(dutype, tpcb, seq, eot, data)
}
#ifdef ARGO_DEBUG
if (argo_debug[D_EMIT]) {
- printf("tp_emit before tpxxx_output tpcb 0x%x, dutype 0x%x, datalen 0x%x\n",
+ printf("tp_emit before tpxxx_output tpcb %p, dutype 0x%x, datalen 0x%x\n",
tpcb, dutype, datalen);
dump_buf(mtod(m, caddr_t), datalen);
}
@@ -779,7 +779,7 @@ tp_emit(dutype, tpcb, seq, eot, data)
#endif
#ifdef ARGO_DEBUG
if (argo_debug[D_EMIT]) {
- printf("OUTPUT: tpcb 0x%x, isop 0x%x, so 0x%x\n",
+ printf("OUTPUT: tpcb %p, isop %p, so %p\n",
tpcb, tpcb->tp_npcb, tpcb->tp_sock);
}
#endif
@@ -872,7 +872,7 @@ tp_error_emit(error, sref, faddr, laddr, erdata, erlen, tpcb, cons_channel,
#ifdef ARGO_DEBUG
if (argo_debug[D_ERROR_EMIT]) {
printf(
- "tp_error_emit error 0x%x sref 0x%x tpcb 0x%x erlen 0x%x chan 0x%x\n",
+ "tp_error_emit error 0x%x sref %lx tpcb %p erlen 0x%x chan %p\n",
error, sref, tpcb, erlen, cons_channel);
}
#endif
@@ -1000,7 +1000,7 @@ tp_error_emit(error, sref, faddr, laddr, erdata, erlen, tpcb, cons_channel,
} else {
#ifdef ARGO_DEBUG
if (argo_debug[D_ERROR_EMIT]) {
- printf("error_emit DR error tpduli 0x%x\n", error, hdr->tpdu_li);
+ printf("error_emit DR error %d tpduli %x\n", error, hdr->tpdu_li);
dump_buf((char *) hdr, hdr->tpdu_li);
}
#endif
@@ -1034,7 +1034,7 @@ tp_error_emit(error, sref, faddr, laddr, erdata, erlen, tpcb, cons_channel,
}
#ifdef ARGO_DEBUG
if (argo_debug[D_ERROR_EMIT]) {
- printf("OUTPUT: tpcb 0x%x, isop 0x%x, so 0x%x\n",
+ printf("OUTPUT: tpcb %p, isop %p, so %p\n",
tpcb, tpcb->tp_npcb, tpcb->tp_sock);
}
#endif
@@ -1062,7 +1062,7 @@ tp_error_emit(error, sref, faddr, laddr, erdata, erlen, tpcb, cons_channel,
}
#endif
#else
- printf("TP panic! cons channel 0x%x but not cons configured\n",
+ printf("TP panic! cons channel %p but not cons configured\n",
cons_channel);
#endif
return 0;
@@ -1094,7 +1094,7 @@ tp_error_emit(error, sref, faddr, laddr, erdata, erlen, tpcb, cons_channel,
} else {
#ifdef ARGO_DEBUG
if (argo_debug[D_ERROR_EMIT]) {
- printf("tp_error_emit DROPPING \n", m);
+ printf("tp_error_emit DROPPING %p\n", m);
}
#endif
IncStat(ts_send_drop);