diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-04-21 22:33:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-04-21 22:33:19 +0000 |
commit | 67d88b0a9910a68bb666b448d2dac29cb4d3d8c2 (patch) | |
tree | 967b89f6e07398a22bd8c76d30179b648776542d /sys/netiso/clnp_frag.c | |
parent | ba95d3c1d69cdb251d15a12ebf70f50b0ea2019b (diff) |
partial sync with netbsd 960418, more to come
Diffstat (limited to 'sys/netiso/clnp_frag.c')
-rw-r--r-- | sys/netiso/clnp_frag.c | 44 |
1 files changed, 19 insertions, 25 deletions
diff --git a/sys/netiso/clnp_frag.c b/sys/netiso/clnp_frag.c index a3227ab7589..dff3c3f14db 100644 --- a/sys/netiso/clnp_frag.c +++ b/sys/netiso/clnp_frag.c @@ -1,5 +1,5 @@ -/* $OpenBSD: clnp_frag.c,v 1.2 1996/03/04 10:34:50 mickey Exp $ */ -/* $NetBSD: clnp_frag.c,v 1.7 1996/02/13 22:08:21 christos Exp $ */ +/* $OpenBSD: clnp_frag.c,v 1.3 1996/04/21 22:29:11 deraadt Exp $ */ +/* $NetBSD: clnp_frag.c,v 1.8 1996/04/13 01:34:23 cgd Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -152,9 +152,8 @@ clnp_fragment(ifp, m, first_hop, total_len, segoff, flags, rt) printf("clnp_fragment: total_len %d:\n", total_len); while (mdump != NULL) { - printf("\tmbuf x%x, m_len %d\n", - (unsigned int) mdump, - mdump->m_len); + printf("\tmbuf %p, m_len %d\n", + mdump, mdump->m_len); tot_mlen += mdump->m_len; mdump = mdump->m_next; } @@ -250,9 +249,8 @@ clnp_fragment(ifp, m, first_hop, total_len, segoff, flags, rt) struct mbuf *mdump = frag_hdr; printf("clnp_fragment: sending dg:\n"); while (mdump != NULL) { - printf("\tmbuf x%x, m_len %d\n", - (unsigned int) mdump, - mdump->m_len); + printf("\tmbuf %p, m_len %d\n", + mdump, mdump->m_len); mdump = mdump->m_next; } } @@ -500,8 +498,8 @@ clnp_insert_frag(cfh, m, seg) first, last, fraglen); printf("clnp_insert_frag: current fragments:\n"); for (cf = cfh->cfl_frags; cf != NULL; cf = cf->cfr_next) { - printf("\tcf x%x: [%d-%d]\n", - (unsigned int) cf, cf->cfr_first, cf->cfr_last); + printf("\tcf %p: [%d-%d]\n", + cf, cf->cfr_first, cf->cfr_last); } } #endif @@ -648,8 +646,8 @@ clnp_insert_frag(cfh, m, seg) #ifdef ARGO_DEBUG if (argo_debug[D_REASS]) { printf( - "clnp_insert_frag: clnp x%x requires %d alignment\n", - (unsigned int) clnp, pad); + "clnp_insert_frag: clnp %p requires %d alignment\n", + clnp, pad); } #endif @@ -662,8 +660,8 @@ clnp_insert_frag(cfh, m, seg) #ifdef ARGO_DEBUG if (argo_debug[D_REASS]) { - printf("clnp_insert_frag: cf now x%x, cfr_bytes %d\n", - (unsigned int) cf, cf->cfr_bytes); + printf("clnp_insert_frag: cf now %p, cfr_bytes %d\n", + cf, cf->cfr_bytes); } #endif } @@ -746,9 +744,8 @@ clnp_comp_pdu(cfh) mdump = cf->cfr_data; l = 0; while (mdump != NULL) { - printf("\tmbuf x%x, m_len %d\n", - (unsigned int) mdump, - mdump->m_len); + printf("\tmbuf %p, m_len %d\n", + mdump, mdump->m_len); l += mdump->m_len; mdump = mdump->m_next; } @@ -760,9 +757,8 @@ clnp_comp_pdu(cfh) mdump = cf_next->cfr_data; l = 0; while (mdump != NULL) { - printf("\tmbuf x%x, m_len %d\n", - (unsigned int) mdump, - mdump->m_len); + printf("\tmbuf %p, m_len %d\n", + mdump, mdump->m_len); l += mdump->m_len; mdump = mdump->m_next; } @@ -800,8 +796,7 @@ clnp_comp_pdu(cfh) cf->cfr_first, cf->cfr_last); printf("clnp_comp_pdu: data for frag:\n"); while (mdump != NULL) { - printf("mbuf x%x, m_len %d\n", (unsigned int) mdump, - mdump->m_len); + printf("mbuf %p, m_len %d\n", mdump, mdump->m_len); /* dump_buf(mtod(mdump, caddr_t), mdump->m_len); */ mdump = mdump->m_next; } @@ -835,9 +830,8 @@ clnp_comp_pdu(cfh) struct mbuf *mdump = hdr; printf("clnp_comp_pdu: pdu is:\n"); while (mdump != NULL) { - printf("mbuf x%x, m_len %d\n", - (unsigned int) mdump, - mdump->m_len); + printf("mbuf %p, m_len %d\n", + mdump, mdump->m_len); #if 0 dump_buf(mtod(mdump, caddr_t), mdump->m_len); #endif |