Change interface to ...Show functions, minor refactoring
* ...Show functions take an indent argument (number of spaces to print in front of each line) instead of a char* intro to avoid allocation at each level, replacing '\t' with 8 spaces in top level code where necessary * Refactor element_size -> field_size (as used in dbAddr), also in dbChannel functions * Fix: wrong macro name in unused part of db_field_log.h
This commit is contained in:
committed by
Michael Davidsaver
parent
317065dadb
commit
6e58dcfab6
@@ -155,12 +155,12 @@ void dbChannelIO::show (
|
||||
dbChannelRecord ( this->dbch ) -> name );
|
||||
|
||||
if ( level > 0u ) {
|
||||
printf ( "\ttype %s, element count %li, field at %p\n",
|
||||
printf ( " type %s, element count %li, field at %p\n",
|
||||
dbf_type_to_text ( dbChannelExportType ( this->dbch ) ),
|
||||
dbChannelElements ( this->dbch ),
|
||||
dbChannelField ( this->dbch ) );
|
||||
if ( level > 1u ) {
|
||||
dbChannelFilterShow ( this->dbch, "\t", level - 2u );
|
||||
dbChannelFilterShow ( this->dbch, level - 2u, 8 );
|
||||
this->serviceIO.show ( level - 2u );
|
||||
this->serviceIO.showAllIO ( *this, level - 2u );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user