From a19ff5b204a5e36ae522feb4acc0f31542b95f38 Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 7 Jan 2005 18:03:36 +0000 Subject: debugging for sam, and an old fix forgotten --- src/cmd/samterm/io.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/cmd/samterm/io.c') 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 -- cgit v1.2.3