Changeset 826a0a97 in mainline
- Timestamp:
- 2018-06-25T18:53:41Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0a0dff8
- Parents:
- 8751cf3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/assert.c
r8751cf3 r826a0a97 38 38 #include <stacktrace.h> 39 39 #include <stdint.h> 40 #include <task.h> 40 41 41 42 static atomic_t failed_asserts = { 0 }; … … 46 47 * Send the message safely to kio. Nested asserts should not occur. 47 48 */ 48 kio_printf("Assertion failed (%s) in file \"%s\", line %u.\n",49 cond, file, line);49 kio_printf("Assertion failed (%s) in task %ld, file \"%s\", line %u.\n", 50 cond, (long) task_get_id(), file, line); 50 51 51 52 stacktrace_kio_print(); … … 60 61 * Send the message safely to kio. Nested asserts should not occur. 61 62 */ 62 kio_printf("Assertion failed (%s) in file \"%s\", line %u.\n",63 cond, file, line);63 kio_printf("Assertion failed (%s) in task %ld, file \"%s\", line %u.\n", 64 cond, (long) task_get_id(), file, line); 64 65 65 66 stacktrace_kio_print(); … … 76 77 * assertions. 77 78 */ 78 printf("Assertion failed (%s) infile \"%s\", line %u.\n",79 cond, file, line);79 kio_printf("Assertion failed (%s) in task %ld, file \"%s\", line %u.\n", 80 cond, (long) task_get_id(), file, line); 80 81 stacktrace_print(); 81 82
Note:
See TracChangeset
for help on using the changeset viewer.