Changeset ae5aa90 in mainline for kernel/generic/src/udebug/udebug.c


Ignore:
Timestamp:
2009-05-14T21:29:00Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9ba6262
Parents:
8ebc8bf4
Message:

Clean up various log messages, mostly udebug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/udebug/udebug.c

    r8ebc8bf4 rae5aa90  
    272272        }
    273273
    274         //printf("udebug_syscall_event\n");
     274        /* Fill in the GO response. */
    275275        call = THREAD->udebug.go_call;
    276276        THREAD->udebug.go_call = NULL;
     
    280280        IPC_SET_ARG2(call->data, id);
    281281        IPC_SET_ARG3(call->data, rc);
    282         //printf("udebug_syscall_event/ipc_answer\n");
    283282
    284283        THREAD->udebug.syscall_args[0] = a1;
     
    330329        thread_attach(t, ta);
    331330
    332         LOG("udebug_thread_b_event\n");
    333         LOG("- check state\n");
     331        LOG("Check state");
    334332
    335333        /* Must only generate events when in debugging session */
    336334        if (THREAD->udebug.active != true) {
    337                 LOG("- udebug.active: %s, udebug.go: %s\n",
    338                         THREAD->udebug.active ? "yes(+)" : "no(-)",
    339                         THREAD->udebug.go ? "yes(-)" : "no(+)");
     335                LOG("udebug.active: %s, udebug.go: %s",
     336                        THREAD->udebug.active ? "Yes(+)" : "No",
     337                        THREAD->udebug.go ? "Yes(-)" : "No");
    340338                mutex_unlock(&THREAD->udebug.lock);
    341339                mutex_unlock(&TASK->udebug.lock);
     
    343341        }
    344342
    345         LOG("- trigger event\n");
    346 
     343        LOG("Trigger event");
    347344        call = THREAD->udebug.go_call;
    348345        THREAD->udebug.go_call = NULL;
     
    364361        mutex_unlock(&TASK->udebug.lock);
    365362
    366         LOG("- sleep\n");
     363        LOG("Wait for Go");
    367364        udebug_wait_for_go(&THREAD->udebug.go_wq);
    368365}
     
    380377        mutex_lock(&THREAD->udebug.lock);
    381378
    382         LOG("udebug_thread_e_event\n");
    383         LOG("- check state\n");
     379        LOG("Check state");
    384380
    385381        /* Must only generate events when in debugging session. */
    386382        if (THREAD->udebug.active != true) {
    387 /*              printf("- udebug.active: %s, udebug.go: %s\n",
    388                         THREAD->udebug.active ? "yes(+)" : "no(-)",
    389                         THREAD->udebug.go ? "yes(-)" : "no(+)");*/
     383                LOG("udebug.active: %s, udebug.go: %s",
     384                        THREAD->udebug.active ? "Yes" : "No",
     385                        THREAD->udebug.go ? "Yes" : "No");
    390386                mutex_unlock(&THREAD->udebug.lock);
    391387                mutex_unlock(&TASK->udebug.lock);
     
    393389        }
    394390
    395         LOG("- trigger event\n");
    396 
     391        LOG("Trigger event");
    397392        call = THREAD->udebug.go_call;
    398393        THREAD->udebug.go_call = NULL;
     
    433428        ipl_t ipl;
    434429
    435         LOG("udebug_task_cleanup()\n");
    436         LOG("task %" PRIu64 "\n", ta->taskid);
    437 
    438430        if (ta->udebug.dt_state != UDEBUG_TS_BEGINNING &&
    439431            ta->udebug.dt_state != UDEBUG_TS_ACTIVE) {
    440                 LOG("udebug_task_cleanup(): task not being debugged\n");
    441432                return EINVAL;
    442433        }
     434
     435        LOG("Task %" PRIu64, ta->taskid);
    443436
    444437        /* Finish debugging of all userspace threads */
     
    471464
    472465                                /* Answer GO call */
    473                                 LOG("answer GO call with EVENT_FINISHED\n");
     466                                LOG("Answer GO call with EVENT_FINISHED.");
    474467                                IPC_SET_RETVAL(t->udebug.go_call->data, 0);
    475468                                IPC_SET_ARG1(t->udebug.go_call->data,
Note: See TracChangeset for help on using the changeset viewer.