Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/assert.c

    r826a0a97 r1433ecda  
    3838#include <stacktrace.h>
    3939#include <stdint.h>
    40 #include <task.h>
    4140
    4241static atomic_t failed_asserts = { 0 };
     
    4746         * Send the message safely to kio. Nested asserts should not occur.
    4847         */
    49         kio_printf("Assertion failed (%s) in task %ld, file \"%s\", line %u.\n",
    50             cond, (long) task_get_id(), file, line);
    51 
    52         stacktrace_kio_print();
     48        kio_printf("Assertion failed (%s) in file \"%s\", line %u.\n",
     49            cond, file, line);
    5350
    5451        /* Sometimes we know in advance that regular printf() would likely fail. */
     
    6158         * Send the message safely to kio. Nested asserts should not occur.
    6259         */
    63         kio_printf("Assertion failed (%s) in task %ld, file \"%s\", line %u.\n",
    64             cond, (long) task_get_id(), file, line);
    65 
    66         stacktrace_kio_print();
     60        kio_printf("Assertion failed (%s) in file \"%s\", line %u.\n",
     61            cond, file, line);
    6762
    6863        /*
     
    7772         * assertions.
    7873         */
    79         kio_printf("Assertion failed (%s) in task %ld, file \"%s\", line %u.\n",
    80             cond, (long) task_get_id(), file, line);
     74        printf("Assertion failed (%s) in file \"%s\", line %u.\n",
     75            cond, file, line);
    8176        stacktrace_print();
    8277
Note: See TracChangeset for help on using the changeset viewer.