void trace_tty(struct tty *tty) { TRACE("struct tty:\n" "\tnopen: %d, flags: 0x%08x,\n", tty->nopen, tty->flags); TRACE("ddomain dd:\n"); trace_ddomain(&tty->dd); TRACE("ddomain ddi:\n"); trace_ddomain(&tty->ddi); TRACE("\tpgid: %08x\n", tty->pgid); TRACE("termios t:"); trace_termios(&tty->t); TRACE("\tiactivity: %d, ibusy: %d\n", tty->iactivity, tty->ibusy); TRACE("str istr:\n"); trace_str(&tty->istr); TRACE("str rstr:\n"); trace_str(&tty->rstr); TRACE("str ostr:\n"); trace_str(&tty->ostr); TRACE("winsize wsize:\n"); trace_winsize(&tty->wsize); TRACE("\tservice: 0x%08x\n", tty->service); }
void start_b() { while (1) { append_result(); MsgEnv *env; switch (append_i) { case 2: break; case 3: env = receive_message(); release_msg_env(env); break; case 11: trace(ALWAYS,"doneee !!!"); trace_ptr(ALWAYS,"rtx_strcmp ", rtx_strcmp); trace_ptr(ALWAYS,"result ", result); trace_ptr(ALWAYS,"expected ", expected); trace(ALWAYS,"result"); trace(ALWAYS,result); trace(ALWAYS,"expected"); trace(ALWAYS,expected); if (rtx_strcmp(result, expected) == 0) { trace(ALWAYS,"YAY IT WORKS!!!"); } utest_assert(rtx_strcmp(result, expected) == 0, "Result did not match expected sequence"); if (rtx_strcmp(result, expected) != 0) { trace_str(ALWAYS, "expected : ", expected); trace_str(ALWAYS, "got : ", result); } trace(ALWAYS,"test result timeee"); utest_test_results(); break; default: trace_uint(ALWAYS,"append_i ", append_i); utest_assert(0, "b process append_i not recongized"); break; } release_processor(); } }