Changeset a35b458 in mainline for uspace/lib/c/generic/assert.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/assert.c
r3061bc1 ra35b458 48 48 kio_printf("Assertion failed (%s) in file \"%s\", line %u.\n", 49 49 cond, file, line); 50 50 51 51 /* Sometimes we know in advance that regular printf() would likely fail. */ 52 52 abort(); … … 60 60 kio_printf("Assertion failed (%s) in file \"%s\", line %u.\n", 61 61 cond, file, line); 62 62 63 63 /* 64 64 * Check if this is a nested or parallel assert. … … 66 66 if (atomic_postinc(&failed_asserts)) 67 67 abort(); 68 68 69 69 /* 70 70 * Attempt to print the message to standard output and display … … 75 75 cond, file, line); 76 76 stacktrace_print(); 77 77 78 78 abort(); 79 79 }
Note:
See TracChangeset
for help on using the changeset viewer.