use %p with pointers

This commit is contained in:
Jeff Hill
1997-06-30 22:54:34 +00:00
parent 5e90bc7d9c
commit 5101067bcc
9 changed files with 44 additions and 43 deletions

View File

@@ -29,6 +29,9 @@
*
* History
* $Log$
* Revision 1.7 1997/04/10 19:34:01 jhill
* API changes
*
* Revision 1.6 1996/12/11 00:58:35 jhill
* better diagnostic
*
@@ -60,8 +63,6 @@
#include "casPVIIL.h" // inline func for casPVI
#include "db_access.h"
VERSIONID(camsgtaskc,"%W% %G%")
static const caHdr nill_msg = {0u,0u,0u,0u,0u,0u};
@@ -201,7 +202,7 @@ casClient::~casClient ()
//
void casClient::show(unsigned level) const
{
printf ("casClient at %x\n", (unsigned) this);
printf ("casClient at %p\n", this);
this->casCoreClient::show(level);
}

View File

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

View File

@@ -29,6 +29,9 @@
*
* History
* $Log$
* Revision 1.10 1997/06/13 09:15:56 jhill
* connect proto changes
*
* Revision 1.9 1997/04/10 19:34:06 jhill
* API changes
*
@@ -116,7 +119,7 @@ void casDGClient::destroy()
void casDGClient::show(unsigned level) const
{
this->casClient::show(level);
printf("casDGClient at %x\n", (unsigned) this);
printf("casDGClient at %p\n", this);
this->dgInBuf::show(level);
this->dgOutBuf::show(level);
}

View File

@@ -29,6 +29,9 @@
*
* History
* $Log$
* Revision 1.5 1997/04/10 19:34:09 jhill
* API changes
*
* Revision 1.4 1996/11/02 00:54:12 jhill
* many improvements
*
@@ -60,14 +63,14 @@
//
void casEventSys::show(unsigned level) const
{
printf ("casEventSys at %x\n", (unsigned) this);
printf ("casEventSys at %p\n", this);
if (level>=1u) {
printf ("\thas coreClient at %x\n", (unsigned) &this->coreClient);
printf ("\thas coreClient at %p\n", &this->coreClient);
printf ("\tnumEventBlocks = %d, maxLogEntries = %d\n",
this->numEventBlocks, this->maxLogEntries);
printf ("\tthere are %d events in the queue\n",
this->eventLogQue.count());
printf ("\tevents off = %d\n", this->eventsOff);
printf ("\tevents off = %d\n", this->eventsOff);
}
}

View File

@@ -29,6 +29,9 @@
*
* History
* $Log$
* Revision 1.16 1997/06/13 09:16:00 jhill
* connect proto changes
*
* Revision 1.15 1997/04/10 19:34:18 jhill
* API changes
*
@@ -89,8 +92,6 @@
#include "gddApps.h"
#include "net_convert.h" // byte order conversion from libca
VERSIONID(casStrmClientcc,"%W% %G%")
static const caHdr nill_msg = {0u,0u,0u,0u,0u,0u};
//
@@ -240,7 +241,7 @@ inline casClientMon *caServerI::resIdToClientMon(const caResId &idIn)
void casStrmClient::show (unsigned level) const
{
this->casClient::show (level);
printf ("casStrmClient at %x\n", (unsigned) this);
printf ("casStrmClient at %p\n", this);
if (level > 1u) {
printf ("\tuser %s at %s\n", this->pUserName, this->pHostName);
}

View File

@@ -29,6 +29,9 @@
*
* History
* $Log$
* Revision 1.17 1997/06/13 09:16:06 jhill
* connect proto changes
*
* Revision 1.16 1997/04/10 19:34:23 jhill
* API changes
*
@@ -80,22 +83,6 @@
#ifndef INCLserverh
#define INCLserverh
#ifdef __STDC__
# define VERSIONID(NAME,VERS) \
const char *EPICS_CAS_VID_ ## NAME = VERS;
#else /*__STDC__*/
# define VERSIONID(NAME,VERS) \
const char *EPICS_CAS_VID_/* */NAME = VERS;
#endif /*__STDC__*/
#if defined(CAS_VERSION_GLOBAL) && 0
# define HDRVERSIONID(NAME,VERS) VERSIONID(NAME,VERS)
#else /*CAS_VERSION_GLOBAL*/
# define HDRVERSIONID(NAME,VERS)
#endif /*CAS_VERSION_GLOBAL*/
HDRVERSIONID(serverh, "%W% %G%")
//
// ANSI C
//
@@ -104,7 +91,7 @@ HDRVERSIONID(serverh, "%W% %G%")
//
// EPICS
//
#define epicsAssertAuthor "Jeff Hill johill@lanl.gov"
#define epicsAssertAuthor "Jeff Hill johill@lanl.gov"
#include "epicsAssert.h"
//

View File

@@ -55,7 +55,7 @@ casDGIntfOS::~casDGIntfOS()
//
void casDGIntfOS::show(unsigned level) const
{
printf ("casDGIntfOS at %x\n", (unsigned) this);
printf ("casDGIntfOS at %p\n", this);
if (this->pRdReg) {
this->pRdReg->show(level);
}
@@ -97,6 +97,6 @@ casDGReadReg::~casDGReadReg()
void casDGReadReg::show(unsigned level) const
{
this->fdReg::show(level);
printf("casDGReadReg at %x\n", (unsigned) this);
printf("casDGReadReg at %p\n", this);
}

View File

@@ -6,6 +6,9 @@
*
*
* $Log$
* Revision 1.2 1997/04/10 19:34:30 jhill
* API changes
*
* Revision 1.1 1996/11/02 01:01:29 jhill
* installed
*
@@ -62,7 +65,7 @@ const char *casDGEvWakeup::name() const
void casDGEvWakeup::show(unsigned level) const
{
this->osiTimer::show(level);
printf("casDGEvWakeup at %x\n", (unsigned) this);
printf("casDGEvWakeup at %p\n", this);
}
//
@@ -139,7 +142,7 @@ casDGOS::~casDGOS()
//
void casDGOS::show(unsigned level) const
{
printf ("casDGOS at %lx\n", (unsigned long) this);
printf ("casDGOS at %p\n", this);
this->casDGClient::show(level);
if (this->pEvWk) {
this->pEvWk->show(level);

View File

@@ -4,6 +4,9 @@
//
//
// $Log$
// Revision 1.5 1997/04/10 19:34:32 jhill
// API changes
//
// Revision 1.4 1996/12/12 21:24:17 jhill
// moved casStreamOS *pStrmOS decl down
//
@@ -163,7 +166,7 @@ const char *casStreamEvWakeup::name() const
//
void casStreamEvWakeup::show(unsigned level) const
{
printf ("casStreamEvWakeup at %x {\n", (unsigned) this);
printf ("casStreamEvWakeup at %p {\n", this);
this->osiTimer::show(level);
printf ("}\n");
}
@@ -233,7 +236,7 @@ const char *casStreamIOWakeup::name() const
//
void casStreamIOWakeup::show(unsigned level) const
{
printf ("casStreamIOWakeup at %x {\n", (unsigned) this);
printf ("casStreamIOWakeup at %p {\n", this);
this->osiTimer::show(level);
printf ("}\n");
}
@@ -410,7 +413,7 @@ casStreamOS::~casStreamOS()
void casStreamOS::show(unsigned level) const
{
this->casStrmClient::show(level);
printf("casStreamOS at %x\n", (unsigned) this);
printf("casStreamOS at %p\n", this);
printf("\tsendBlocked = %d\n", this->sendBlocked);
if (this->pWtReg) {
this->pWtReg->show(level);
@@ -440,7 +443,7 @@ caStatus casStreamOS::start()
void casStreamReadReg::show(unsigned level) const
{
this->fdReg::show(level);
printf ("casStreamReadReg at %x\n", (unsigned) this);
printf ("casStreamReadReg at %p\n", this);
}
//
@@ -499,7 +502,7 @@ void casStreamOS::sendBlockSignal()
void casStreamWriteReg::show(unsigned level) const
{
this->fdReg::show (level);
printf ("casStreamWriteReg at %x\n", (unsigned) this);
printf ("casStreamWriteReg at %p\n", this);
}