Changeset 4b54bd9 in mainline for uspace/lib/pcut/src/assert.c
- Timestamp:
- 2018-09-12T13:23:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3da0ee4
- Parents:
- 275530a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcut/src/assert.c
r275530a4 r4b54bd9 43 43 44 44 #include "internal.h" 45 46 #pragma warning(push, 0) 45 47 #include <setjmp.h> 46 48 #include <stdarg.h> 47 49 #include <stdio.h> 50 #pragma warning(pop) 51 48 52 49 53 /** Maximum length of failed-assert message. */ … … 59 63 static int message_buffer_index = 0; 60 64 61 void pcut_failed_assertion_fmt(const char *filename, int line, const char *fmt, ...) 62 { 65 void pcut_failed_assertion_fmt(const char *filename, int line, const char *fmt, ...) { 63 66 va_list args; 64 67 char *current_buffer = message_buffer[message_buffer_index]; … … 66 69 message_buffer_index = (message_buffer_index + 1) % MESSAGE_BUFFER_COUNT; 67 70 68 snprintf(current_buffer, MAX_MESSAGE_LENGTH, "%s:%d: ", filename, line);71 pcut_snprintf(current_buffer, MAX_MESSAGE_LENGTH, "%s:%d: ", filename, line); 69 72 offset = pcut_str_size(current_buffer); 70 73
Note:
See TracChangeset
for help on using the changeset viewer.