Changeset 8119363 in mainline for uspace/lib/c/generic/assert.c
- Timestamp:
- 2018-06-26T17:35:40Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6e569bf
- Parents:
- fbfe59d (diff), e768aea (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/assert.c
rfbfe59d r8119363 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.