* Copyright (c) University of British Columbia, 1984
* Copyright (c) 1990 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* the Laboratory for Computation Vision and the Computer Science Department
* of the University of British Columbia.
* %sccs.include.redist.c%
* @(#)pk_debug.c 7.3 (Berkeley) %G%
"Listen", "Ready", "Received-Call",
"Sent-Call", "Data-Transfer","Received-Clear",
"Call", "Call-Conf", "Clear",
"Clear-Conf", "Data", "Intr", "Intr-Conf",
"Rr", "Rnr", "Reset", "Reset-Conf",
"Restart", "Restart-Conf", "Invalid"
register int i
, len
= 0, cnt
= 0;
if (xcp
-> xc_ptrace
== 0)
i
= pk_decode (xp
) / MAXSTATES
;
for (m
= dtom (xp
); m
; m
= m
-> m_next
) {
printf ("LCN=%d %s: %s #=%d, len=%d ",
xp
-> logical_channel_number
, dir
, pk_name
[i
], cnt
, len
);
for (s
= (char *) xp
, i
= 0; i
< 5; ++i
, ++s
)
printf ("%x ", (int) * s
& 0xff);