diff options
author | rsc <devnull@localhost> | 2005-01-07 18:03:36 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-07 18:03:36 +0000 |
commit | a19ff5b204a5e36ae522feb4acc0f31542b95f38 (patch) | |
tree | 9f03f972fe7615d0c763fb680a0a837e4f625729 /src/cmd/samterm/io.c | |
parent | b80755cf2d7bfaed4c8120cbd9b874f799e65644 (diff) | |
download | plan9port-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.c | 9 |
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 |