Changeset 12bf33a in mainline


Ignore:
Timestamp:
2009-01-30T15:58:31Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
826c203
Parents:
917c427
Message:

print task name during fault

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/interrupt.h

    r917c427 r12bf33a  
    4949        if (istate_from_uspace(istate)) { \
    5050                task_t *task = TASK; \
    51                 printf("Task %" PRIu64 " killed due to an exception at %p.", task->taskid, istate_get_pc(istate)); \
    52                 printf("  " fmt "\n", ##__VA_ARGS__); \
     51                printf("Task %s (%" PRIu64 ") killed due to an exception at %p: ", task->name, task->taskid, istate_get_pc(istate)); \
     52                printf(fmt "\n", ##__VA_ARGS__); \
    5353                task_kill(task->taskid); \
    5454                thread_exit(); \
Note: See TracChangeset for help on using the changeset viewer.