Changes in uspace/lib/c/generic/assert.c [1433ecda:826a0a97] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/assert.c
r1433ecda 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); 51 52 stacktrace_kio_print(); 50 53 51 54 /* Sometimes we know in advance that regular printf() would likely fail. */ … … 58 61 * Send the message safely to kio. Nested asserts should not occur. 59 62 */ 60 kio_printf("Assertion failed (%s) in file \"%s\", line %u.\n", 61 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); 65 66 stacktrace_kio_print(); 62 67 63 68 /* … … 72 77 * assertions. 73 78 */ 74 printf("Assertion failed (%s) infile \"%s\", line %u.\n",75 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); 76 81 stacktrace_print(); 77 82
Note:
See TracChangeset
for help on using the changeset viewer.