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:
Ralph Lange
2012-04-27 13:21:59 -04:00
committed by Michael Davidsaver
parent 317065dadb
commit 6e58dcfab6
12 changed files with 59 additions and 44 deletions

View File

@@ -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 );
}