Changeset 7ed2d8f in mainline for kernel/generic/include/interrupt.h


Ignore:
Timestamp:
2009-01-07T22:55:52Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c571f42
Parents:
06b2b7f
Message:

Unify newlines in fault_if_from_uspace() format strings. (Remove them and print newline automatically). Also start messages with caps.

File:
1 edited

Legend:

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

    r06b2b7f r7ed2d8f  
    4545typedef void (* iroutine)(int n, istate_t *istate);
    4646
    47 #define fault_if_from_uspace(istate, cmd, ...) \
     47#define fault_if_from_uspace(istate, fmt, ...) \
    4848{ \
    4949        if (istate_from_uspace(istate)) { \
    5050                task_t *task = TASK; \
    5151                printf("Task %" PRIu64 " killed due to an exception at %p.", task->taskid, istate_get_pc(istate)); \
    52                 printf("  " cmd, ##__VA_ARGS__); \
     52                printf("  " fmt "\n", ##__VA_ARGS__); \
    5353                task_kill(task->taskid); \
    5454                thread_exit(); \
Note: See TracChangeset for help on using the changeset viewer.