Changeset 16cc9f7 for libcfa/src/bits
- Timestamp:
- Apr 22, 2022, 6:33:22 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- 31a5f418
- Parents:
- 94d91e17
- Location:
- libcfa/src/bits
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified libcfa/src/bits/debug.cfa ¶
r94d91e17 r16cc9f7 10 10 // Created On : Thu Mar 30 12:30:01 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jun 17 11:07:13 202013 // Update Count : 1 212 // Last Modified On : Fri Apr 22 18:20:26 2022 13 // Update Count : 13 14 14 // 15 15 … … 44 44 void __cfaabi_bits_release() __attribute__((__weak__)) {} 45 45 46 void__cfaabi_bits_print_safe ( int fd, const char fmt[], ... ) __attribute__(( format(printf, 2, 3) )) {46 int __cfaabi_bits_print_safe ( int fd, const char fmt[], ... ) __attribute__(( format(printf, 2, 3) )) { 47 47 va_list args; 48 48 … … 55 55 __cfaabi_bits_release(); 56 56 va_end( args ); 57 return len; 57 58 } 58 59 59 void__cfaabi_bits_print_nolock( int fd, const char fmt[], ... ) __attribute__(( format(printf, 2, 3) )) {60 int __cfaabi_bits_print_nolock( int fd, const char fmt[], ... ) __attribute__(( format(printf, 2, 3) )) { 60 61 va_list args; 61 62 … … 66 67 67 68 va_end( args ); 69 return len; 68 70 } 69 71 70 void__cfaabi_bits_print_vararg( int fd, const char fmt[], va_list args ) {72 int __cfaabi_bits_print_vararg( int fd, const char fmt[], va_list args ) { 71 73 int len = vsnprintf( buffer, buffer_size, fmt, args ); 72 74 __cfaabi_bits_write( fd, buffer, len ); 75 return len; 73 76 } 74 77 75 void__cfaabi_bits_print_buffer( int fd, char in_buffer[], int in_buffer_size, const char fmt[], ... ) __attribute__(( format(printf, 4, 5) )) {78 int __cfaabi_bits_print_buffer( int fd, char in_buffer[], int in_buffer_size, const char fmt[], ... ) __attribute__(( format(printf, 4, 5) )) { 76 79 va_list args; 77 80 … … 82 85 83 86 va_end( args ); 87 return len; 84 88 } 85 89 } -
TabularUnified libcfa/src/bits/debug.hfa ¶
r94d91e17 r16cc9f7 9 9 // Author : Thierry Delisle 10 10 // Created On : Mon Nov 28 12:27:26 2016 11 // Last Modified By : Andrew Beach12 // Last Modified On : Mon Apr 27 10:15:00 202013 // Update Count : 1 011 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Apr 22 18:21:56 2022 13 // Update Count : 11 14 14 // 15 15 … … 46 46 extern void __cfaabi_bits_acquire(); 47 47 extern void __cfaabi_bits_release(); 48 extern void__cfaabi_bits_print_safe ( int fd, const char fmt[], ... ) __attribute__(( format(printf, 2, 3) ));49 extern void__cfaabi_bits_print_nolock( int fd, const char fmt[], ... ) __attribute__(( format(printf, 2, 3) ));50 extern void__cfaabi_bits_print_vararg( int fd, const char fmt[], va_list arg );51 extern void__cfaabi_bits_print_buffer( int fd, char buffer[], int buffer_size, const char fmt[], ... ) __attribute__(( format(printf, 4, 5) ));48 extern int __cfaabi_bits_print_safe ( int fd, const char fmt[], ... ) __attribute__(( format(printf, 2, 3) )); 49 extern int __cfaabi_bits_print_nolock( int fd, const char fmt[], ... ) __attribute__(( format(printf, 2, 3) )); 50 extern int __cfaabi_bits_print_vararg( int fd, const char fmt[], va_list arg ); 51 extern int __cfaabi_bits_print_buffer( int fd, char buffer[], int buffer_size, const char fmt[], ... ) __attribute__(( format(printf, 4, 5) )); 52 52 53 53 #if defined(__CFA_DEBUG_PRINT__) \
Note: See TracChangeset
for help on using the changeset viewer.