added diagnostics

This commit is contained in:
Jeff Hill
2000-09-06 00:35:00 +00:00
parent 87a8230100
commit 2fa3e3d139
10 changed files with 127 additions and 18 deletions

View File

@@ -89,3 +89,19 @@ int dbSubscriptionIO::begin ( struct dbAddr &addr, unsigned mask )
}
}
void dbSubscriptionIO::show ( unsigned level ) const
{
printf ( "Data base subscription IO at %p\n", this );
if ( level > 0u ) {
short tmpType;
if ( this->type < SHRT_MAX ) {
tmpType = static_cast < short > ( this->type );
printf ( "\ttype %s, count %lu, channel at %p\n",
dbf_type_to_text ( tmpType ), this->count, &this->chan );
}
else {
printf ("strange type !, count %lu, channel at %p\n",
this->count, &this->chan );
}
}
}