Ignore:
Timestamp:
Apr 22, 2022, 6:33:22 PM (2 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
31a5f418
Parents:
94d91e17
Message:

change cfaabi_bits_print... routines to return the number of characters printed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/bits/debug.cfa

    r94d91e17 r16cc9f7  
    1010// Created On       : Thu Mar 30 12:30:01 2017
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Jun 17 11:07:13 2020
    13 // Update Count     : 12
     12// Last Modified On : Fri Apr 22 18:20:26 2022
     13// Update Count     : 13
    1414//
    1515
     
    4444        void __cfaabi_bits_release() __attribute__((__weak__)) {}
    4545
    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) )) {
    4747                va_list args;
    4848
     
    5555                __cfaabi_bits_release();
    5656                va_end( args );
     57                return len;
    5758        }
    5859
    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) )) {
    6061                va_list args;
    6162
     
    6667
    6768                va_end( args );
     69                return len;
    6870        }
    6971
    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 ) {
    7173                int len = vsnprintf( buffer, buffer_size, fmt, args );
    7274                __cfaabi_bits_write( fd, buffer, len );
     75                return len;
    7376        }
    7477
    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) )) {
    7679                va_list args;
    7780
     
    8285
    8386                va_end( args );
     87                return len;
    8488        }
    8589}
Note: See TracChangeset for help on using the changeset viewer.