Changes in uspace/lib/c/generic/assert.c [826a0a97:1433ecda] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/assert.c
r826a0a97 r1433ecda 38 38 #include <stacktrace.h> 39 39 #include <stdint.h> 40 #include <task.h>41 40 42 41 static atomic_t failed_asserts = { 0 }; … … 47 46 * Send the message safely to kio. Nested asserts should not occur. 48 47 */ 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); 53 50 54 51 /* Sometimes we know in advance that regular printf() would likely fail. */ … … 61 58 * Send the message safely to kio. Nested asserts should not occur. 62 59 */ 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); 67 62 68 63 /* … … 77 72 * assertions. 78 73 */ 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); 81 76 stacktrace_print(); 82 77
Note:
See TracChangeset
for help on using the changeset viewer.