aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/samterm/io.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-07 18:03:36 +0000
committerrsc <devnull@localhost>2005-01-07 18:03:36 +0000
commita19ff5b204a5e36ae522feb4acc0f31542b95f38 (patch)
tree9f03f972fe7615d0c763fb680a0a837e4f625729 /src/cmd/samterm/io.c
parentb80755cf2d7bfaed4c8120cbd9b874f799e65644 (diff)
downloadplan9port-a19ff5b204a5e36ae522feb4acc0f31542b95f38.tar.gz
plan9port-a19ff5b204a5e36ae522feb4acc0f31542b95f38.tar.bz2
plan9port-a19ff5b204a5e36ae522feb4acc0f31542b95f38.zip
debugging for sam, and an old fix forgotten
Diffstat (limited to 'src/cmd/samterm/io.c')
-rw-r--r--src/cmd/samterm/io.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cmd/samterm/io.c b/src/cmd/samterm/io.c
index 30a707a0..d9cf2e83 100644
--- a/src/cmd/samterm/io.c
+++ b/src/cmd/samterm/io.c
@@ -33,20 +33,27 @@ void
initio(void)
{
threadsetname("main");
+ if(protodebug) print("mouse\n");
mousectl = initmouse(nil, display->image);
if(mousectl == nil){
fprint(2, "samterm: mouse init failed: %r\n");
threadexitsall("mouse");
}
mousep = &mousectl->m;
+ if(protodebug) print("kbd\n");
keyboardctl = initkeyboard(nil);
if(keyboardctl == nil){
fprint(2, "samterm: keyboard init failed: %r\n");
threadexitsall("kbd");
}
+ if(protodebug) print("hoststart\n");
hoststart();
- if(plumbstart() < 0)
+ if(protodebug) print("plumbstart\n");
+ if(plumbstart() < 0){
+ if(protodebug) print("extstart\n");
extstart();
+ }
+ if(protodebug) print("initio done\n");
}
void