diff options
author | rsc <devnull@localhost> | 2004-05-23 00:59:17 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-05-23 00:59:17 +0000 |
commit | a09e80f9c414ffc815641d49836be3a2a6a07800 (patch) | |
tree | 0854a21767989f10d109db6949aa3861e32a579d /src/libventi/server.c | |
parent | 7e0e6522e576bc35b55a7182c23fb752cc1ec636 (diff) | |
download | plan9port-a09e80f9c414ffc815641d49836be3a2a6a07800.tar.gz plan9port-a09e80f9c414ffc815641d49836be3a2a6a07800.tar.bz2 plan9port-a09e80f9c414ffc815641d49836be3a2a6a07800.zip |
various debugging
Diffstat (limited to 'src/libventi/server.c')
-rw-r--r-- | src/libventi/server.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libventi/server.c b/src/libventi/server.c index 837cbf45..8aa95798 100644 --- a/src/libventi/server.c +++ b/src/libventi/server.c @@ -102,7 +102,12 @@ connproc(void *v) Packet *p; VtReq *r; int fd; +static int first=1; +if(first){ + first=0; + fmtinstall('F', vtfcallfmt); +} r = nil; sc = v; sc->c = nil; @@ -139,6 +144,8 @@ connproc(void *v) fprint(2, "bad packet on %s: %r\n", sc->dir); continue; } + if(chattyventi) + fprint(2, "%s <- %F\n", argv0, &r->tx); packetfree(p); if(r->tx.type == VtTgoodbye) break; @@ -182,6 +189,8 @@ vtrespond(VtReq *r) abort(); if(r->rx.type != r->tx.type+1 && r->rx.type != VtRerror) abort(); + if(chattyventi) + fprint(2, "%s -> %F\n", argv0, &r->rx); if((p = vtfcallpack(&r->rx)) == nil){ fprint(2, "fcallpack on %s: %r\n", sc->dir); packetfree(p); |