fixed gnu warnings

This commit is contained in:
Jeff Hill
2001-02-16 03:13:27 +00:00
parent c38a119e68
commit 10c1cd7569
15 changed files with 75 additions and 47 deletions

View File

@@ -180,7 +180,8 @@ casClient::~casClient ()
//
void casClient::show (unsigned level) const
{
printf ("casClient at %p\n", this);
printf ( "casClient at %p\n",
static_cast <const void *> ( this ) );
this->casCoreClient::show (level);
this->inBuf::show (level);
this->outBuf::show (level);

View File

@@ -6,14 +6,21 @@
//
void casCtx::show (unsigned level) const
{
printf ("casCtx at %p\n", this);
printf ( "casCtx at %p\n",
static_cast <const void *> ( this ) );
if (level >= 3u) {
printf ("\tpMsg = %p\n", &this->msg);
printf ("\tpData = %p\n", pData);
printf ("\tpCAS = %p\n", pCAS);
printf ("\tpClient = %p\n", pClient);
printf ("\tpChannel = %p\n", pChannel);
printf ("\tpPV = %p\n", pPV);
printf ("\tpMsg = %p\n",
static_cast <const void *> ( &this->msg ) );
printf ("\tpData = %p\n",
static_cast <void *> ( pData ) );
printf ("\tpCAS = %p\n",
static_cast <void *> ( pCAS ) );
printf ("\tpClient = %p\n",
static_cast <void *> ( pClient ) );
printf ("\tpChannel = %p\n",
static_cast <void *> ( pChannel ) );
printf ("\tpPV = %p\n",
static_cast <void *> ( pPV ) );
}
}

View File

@@ -71,7 +71,8 @@ void casDGClient::destroy()
//
void casDGClient::show (unsigned level) const
{
printf("casDGClient at %p\n", this);
printf ( "casDGClient at %p\n",
static_cast <const void *> ( this ) );
if (level>=1u) {
char buf[64];
this->clientHostName (buf, sizeof(buf));

View File

@@ -44,7 +44,8 @@
//
void casEventSys::show(unsigned level) const
{
printf ("casEventSys at %p\n", this);
printf ( "casEventSys at %p\n",
static_cast <const void *> ( this ) );
if (level>=1u) {
printf ("\tnumEventBlocks = %u, maxLogEntries = %u\n",
this->numEventBlocks, this->maxLogEntries);

View File

@@ -188,7 +188,8 @@ inline casClientMon *caServerI::resIdToClientMon (const caResId &idIn)
void casStrmClient::show (unsigned level) const
{
this->casClient::show (level);
printf ("casStrmClient at %p\n", this);
printf ( "casStrmClient at %p\n",
static_cast <const void *> ( this ) );
if (level > 1u) {
printf ("\tuser %s at %s\n", this->pUserName, this->pHostName);
}

View File

@@ -159,7 +159,8 @@ const char *casDGEvWakeup::name() const
//
void casDGEvWakeup::show(unsigned level) const
{
printf ("casDGEvWakeup at %p {\n", this);
printf ( "casDGEvWakeup at %p {\n",
static_cast <const void *> ( this ) );
this->osiTimer::show(level);
printf ("}\n");
}
@@ -214,7 +215,8 @@ const char *casDGIOWakeup::name() const
//
void casDGIOWakeup::show(unsigned level) const
{
printf ("casDGIOWakeup at %p {\n", this);
printf ( "casDGIOWakeup at %p {\n",
static_cast <const void *> ( this ) );
this->osiTimer::show(level);
printf ("}\n");
}
@@ -332,8 +334,9 @@ void casDGIntfOS::eventFlush()
//
void casDGIntfOS::show(unsigned level) const
{
printf ("casDGIntfOS at %p\n", this);
if (this->pRdReg) {
printf ( "casDGIntfOS at %p\n",
static_cast <const void *> ( this ) );
if (this->pRdReg) {
this->pRdReg->show (level);
}
if (this->pWtReg) {
@@ -398,7 +401,8 @@ casDGBCastReadReg::~casDGBCastReadReg()
void casDGBCastReadReg::show(unsigned level) const
{
this->fdReg::show(level);
printf("casDGBCastReadReg at %p\n", this);
printf ( "casDGBCastReadReg at %p\n",
static_cast <const void *> ( this ) );
}
//
@@ -428,7 +432,8 @@ void casDGWriteReg::callBack()
void casDGWriteReg::show(unsigned level) const
{
this->fdReg::show (level);
printf ("casDGWriteReg: at %p\n", this);
printf ( "casDGWriteReg: at %p\n",
static_cast <const void *> ( this ) );
}
//

View File

@@ -21,14 +21,12 @@
//
class casStreamReadReg : public fdReg {
public:
inline casStreamReadReg (casStreamOS &osIn);
inline ~casStreamReadReg ();
void show (unsigned level) const;
inline casStreamReadReg (casStreamOS &osIn);
inline ~casStreamReadReg ();
void show (unsigned level) const;
private:
casStreamOS &os;
void callBack ();
casStreamOS &os;
void callBack ();
};
//
@@ -38,11 +36,11 @@ inline casStreamReadReg::casStreamReadReg (casStreamOS &osIn) :
fdReg (osIn.getFD(), fdrRead), os (osIn)
{
# if defined(DEBUG)
printf ("Read on %d\n", this->os.getFD());
printf ("Recv backlog %u\n",
this->os.inBuf::bytesPresent());
printf ("Send backlog %u\n",
this->os.outBuf::bytesPresent());
printf ("Read on %d\n", this->os.getFD());
printf ("Recv backlog %u\n",
this->os.inBuf::bytesPresent());
printf ("Send backlog %u\n",
this->os.outBuf::bytesPresent());
# endif
}
@@ -148,7 +146,8 @@ const char *casStreamEvWakeup::name() const
//
void casStreamEvWakeup::show(unsigned level) const
{
printf ("casStreamEvWakeup at %p {\n", this);
printf ( "casStreamEvWakeup at %p {\n",
static_cast <const void *> ( this ) );
this->osiTimer::show(level);
printf ("}\n");
}
@@ -218,7 +217,8 @@ const char *casStreamIOWakeup::name() const
//
void casStreamIOWakeup::show(unsigned level) const
{
printf ("casStreamIOWakeup at %p {\n", this);
printf ( "casStreamIOWakeup at %p {\n",
static_cast <const void *> ( this ) );
this->osiTimer::show(level);
printf ("}\n");
}
@@ -385,7 +385,8 @@ casStreamOS::~casStreamOS()
void casStreamOS::show(unsigned level) const
{
this->casStrmClient::show(level);
printf("casStreamOS at %p\n", this);
printf("casStreamOS at %p\n",
static_cast <const void *> ( this ) );
printf("\tsendBlocked = %d\n", this->sendBlocked);
if (this->pWtReg) {
this->pWtReg->show(level);
@@ -407,7 +408,8 @@ void casStreamOS::show(unsigned level) const
void casStreamReadReg::show(unsigned level) const
{
this->fdReg::show(level);
printf ("casStreamReadReg at %p\n", this);
printf ( "casStreamReadReg at %p\n",
static_cast <const void *> ( this ) );
}
//
@@ -479,7 +481,8 @@ void casStreamOS::sendBlockSignal()
void casStreamWriteReg::show(unsigned level) const
{
this->fdReg::show (level);
printf ("casStreamWriteReg at %p\n", this);
printf ( "casStreamWriteReg at %p\n",
static_cast <const void *> ( this ) );
}
//

View File

@@ -140,7 +140,8 @@ inline void caServerIO::staticInit()
//
void caServerIO::show (unsigned /* level */) const
{
printf ("caServerIO at %p\n", this);
printf ( "caServerIO at %p\n",
static_cast <const void *> ( this ) );
}
//

View File

@@ -244,7 +244,8 @@ casDGIntfIO::~casDGIntfIO()
//
void casDGIntfIO::show (unsigned level) const
{
printf ("casDGIntfIO at %p\n", this);
printf ( "casDGIntfIO at %p\n",
static_cast <const void *> ( this ) );
printChannelAccessAddressList (&this->beaconAddrList);
this->casDGClient::show (level);
}

View File

@@ -5,6 +5,9 @@
//
//
// $Log$
// Revision 1.20 2000/04/28 02:23:34 jhill
// many, many changes
//
// Revision 1.19 1999/09/02 21:50:28 jhill
// o changed UDP to non-blocking IO
// o cleaned up (consolodated) UDP interface class structure
@@ -234,7 +237,8 @@ inBuf::fillCondition casStreamIO::osdRecv (char *pInBuf, bufSizeT nBytes,
//
void casStreamIO::osdShow (unsigned level) const
{
printf ("casStreamIO at %p\n", this);
printf ( "casStreamIO at %p\n",
static_cast <const void *> ( this ) );
if (level>1u) {
char buf[64];
ipAddrToA(&this->addr, buf, sizeof(buf));

View File

@@ -296,12 +296,13 @@ epicsShareFunc void fdReg::show(unsigned level) const
//
// fdRegId::show()
//
void fdRegId::show(unsigned level) const
void fdRegId::show ( unsigned level ) const
{
printf ("fdRegId at %p\n", this);
if (level>1u) {
printf ("\tfd = %d, type = %d\n",
this->fd, this->type);
printf ( "fdRegId at %p\n",
static_cast <const void *> ( this ) );
if ( level > 1u ) {
printf ( "\tfd = %d, type = %d\n",
this->fd, this->type );
}
}

View File

@@ -665,7 +665,7 @@ epicsShareFunc void epicsShareAPI logClientShow (logClientId id, unsigned level)
if (level>1) {
printf ("iocLogClient: address=%p, sock=%s, connect tries=%u, connect cycles = %u\n",
pClient, pClient->sock==INVALID_SOCKET?"INVALID":"OK",
(void *) pClient, pClient->sock==INVALID_SOCKET?"INVALID":"OK",
pClient->connectTries, pClient->connectCount);
}
}

View File

@@ -95,7 +95,7 @@ void ipAddrToAsciiEngine::show ( unsigned level ) const
{
this->mutex.lock ();
printf ( "ipAddrToAsciiEngine at %p with %u requests pendingh\n",
this, this->labor.count () );
static_cast <const void *> (this), this->labor.count () );
if ( level > 0u ) {
tsDLIterConstBD < ipAddrToAsciiAsynchronous > pItem = this->labor.firstIter ();
while ( pItem.valid () ) {
@@ -163,7 +163,8 @@ void ipAddrToAsciiAsynchronous::show ( unsigned level ) const
sockAddrToA ( &this->addr.sa, ipAddr, sizeof ( ipAddr ) );
printf ( "ipAddrToAsciiAsynchronous for address %s\n", ipAddr );
if ( level > 0u ) {
printf ( "\tidentifier %u, engine %p\n", this->id, this->pEngine );
printf ( "\tidentifier %u, engine %p\n", this->id,
static_cast <void *> (this->pEngine) );
}
ipAddrToAsciiEngine::mutex.unlock ();
}

View File

@@ -353,7 +353,7 @@ void osiTimer::show (unsigned level) const
{
epicsTime cur = epicsTime::getCurrent ();
printf ("osiTimer at %p for \"%s\" with again = %d\n",
this, this->name(), this->again());
static_cast <const void *> (this), this->name(), this->again());
if (level>=1u) {
double delay = this->exp - cur;
printf ("\tdelay to expire = %f, state = %d\n",

View File

@@ -99,7 +99,8 @@ void timerQueueThreaded::reschedule ()
void timerQueueThreaded::show ( unsigned int level ) const
{
printf ( "EPICS threaded timer queue at %p\n", this );
printf ( "EPICS threaded timer queue at %p\n",
static_cast <const void *> ( this ) );
if ( level >=1u ) {
this->queue.show ( level - 1u );
printf ( "reschedule event\n" );