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_ops.c

    r8ebc8bf4 rae5aa90  
    182182        link_t *cur;
    183183
    184         LOG("udebug_begin()\n");
    185 
    186         mutex_lock(&TASK->udebug.lock);
    187         LOG("debugging task %llu\n", TASK->taskid);
     184        LOG("Debugging task %llu", TASK->taskid);
     185        mutex_lock(&TASK->udebug.lock);
    188186
    189187        if (TASK->udebug.dt_state != UDEBUG_TS_INACTIVE) {
    190188                mutex_unlock(&TASK->udebug.lock);
    191                 LOG("udebug_begin(): busy error\n");
    192 
    193189                return EBUSY;
    194190        }
     
    218214
    219215        mutex_unlock(&TASK->udebug.lock);
    220 
    221         LOG("udebug_begin() done (%s)\n",
    222             reply ? "reply" : "stoppability wait");
    223 
    224216        return reply;
    225217}
     
    234226        int rc;
    235227
    236         LOG("udebug_end()\n");
    237 
    238         mutex_lock(&TASK->udebug.lock);
    239         LOG("task %" PRIu64 "\n", TASK->taskid);
    240 
     228        LOG("Task %" PRIu64, TASK->taskid);
     229
     230        mutex_lock(&TASK->udebug.lock);
    241231        rc = udebug_task_cleanup(TASK);
    242 
    243232        mutex_unlock(&TASK->udebug.lock);
    244233
     
    255244int udebug_set_evmask(udebug_evmask_t mask)
    256245{
    257         LOG("udebug_set_mask()\n");
     246        LOG("mask = 0x%x", mask);
    258247
    259248        mutex_lock(&TASK->udebug.lock);
     
    261250        if (TASK->udebug.dt_state != UDEBUG_TS_ACTIVE) {
    262251                mutex_unlock(&TASK->udebug.lock);
    263                 LOG("udebug_set_mask(): not active debuging session\n");
    264 
    265252                return EINVAL;
    266253        }
    267254
    268255        TASK->udebug.evmask = mask;
    269 
    270256        mutex_unlock(&TASK->udebug.lock);
    271257
     
    318304        int rc;
    319305
    320         LOG("udebug_stop()\n");
     306        LOG("udebug_stop()");
    321307
    322308        /*
     
    341327         * Answer GO call.
    342328         */
    343         LOG("udebug_stop - answering go call\n");
    344329
    345330        /* Make sure nobody takes this call away from us. */
     
    349334        IPC_SET_RETVAL(call->data, 0);
    350335        IPC_SET_ARG1(call->data, UDEBUG_EVENT_STOP);
    351         LOG("udebug_stop/ipc_answer\n");
    352336
    353337        THREAD->udebug.cur_event = UDEBUG_EVENT_STOP;
     
    359343        mutex_unlock(&TASK->udebug.lock);
    360344
    361         LOG("udebog_stop/done\n");
    362345        return 0;
    363346}
     
    393376        size_t max_ids;
    394377
    395         LOG("udebug_thread_read()\n");
     378        LOG("udebug_thread_read()");
    396379
    397380        /* Allocate a buffer to hold thread IDs */
Note: See TracChangeset for help on using the changeset viewer.