From f5733cd3af540208aa7342ee495609ecbd4e9f3f Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Mon, 30 Jun 1997 23:40:50 +0000 Subject: [PATCH] use %p for pointers --- src/cas/example/simple/exPV.cc | 2 +- src/cas/io/bsdSocket/caServerIO.cc | 5 ++++- src/cas/io/bsdSocket/casDGIntfIO.cc | 2 +- src/cas/io/bsdSocket/casStreamIO.cc | 5 ++++- src/cas/os/vxWorks/casDGOS.cc | 5 ++++- src/cas/os/vxWorks/casStreamOS.cc | 5 ++++- 6 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/cas/example/simple/exPV.cc b/src/cas/example/simple/exPV.cc index d10ddfed4..b1ba423e8 100644 --- a/src/cas/example/simple/exPV.cc +++ b/src/cas/example/simple/exPV.cc @@ -200,7 +200,7 @@ void exPV::show(unsigned level) const printf("exPV: value=%f\n", (double) *this->pValue); } printf("exPV: interest=%d\n", this->interest); - printf("exPV: pScanTimer=%x\n", (unsigned) this->pScanTimer); + printf("exPV: pScanTimer=%p\n", this->pScanTimer); } } diff --git a/src/cas/io/bsdSocket/caServerIO.cc b/src/cas/io/bsdSocket/caServerIO.cc index aa4fbd188..6c34ba17f 100644 --- a/src/cas/io/bsdSocket/caServerIO.cc +++ b/src/cas/io/bsdSocket/caServerIO.cc @@ -5,6 +5,9 @@ // // // $Log$ +// Revision 1.5 1997/06/13 09:16:12 jhill +// connect proto changes +// // Revision 1.4 1997/04/10 19:40:31 jhill // API changes // @@ -145,7 +148,7 @@ caStatus caServerIO::init(caServerI &cas) // void caServerIO::show (unsigned /* level */) const { - printf ("caServerIO at %x\n", (unsigned) this); + printf ("caServerIO at %p\n", this); } // diff --git a/src/cas/io/bsdSocket/casDGIntfIO.cc b/src/cas/io/bsdSocket/casDGIntfIO.cc index e19e7bfe7..931342ef9 100644 --- a/src/cas/io/bsdSocket/casDGIntfIO.cc +++ b/src/cas/io/bsdSocket/casDGIntfIO.cc @@ -247,7 +247,7 @@ void casDGIntfIO::clientHostName (char *pBuf, unsigned /* bufSize */) const // void casDGIntfIO::osdShow (unsigned level) const { - printf ("casDGIntfIO at %x\n", (unsigned) this); + printf ("casDGIntfIO at %p\n", this); if (level>=1u) { char buf[64]; this->clientHostName(buf, sizeof(buf)); diff --git a/src/cas/io/bsdSocket/casStreamIO.cc b/src/cas/io/bsdSocket/casStreamIO.cc index 4d5b3f616..8b756dcfe 100644 --- a/src/cas/io/bsdSocket/casStreamIO.cc +++ b/src/cas/io/bsdSocket/casStreamIO.cc @@ -5,6 +5,9 @@ // // // $Log$ +// Revision 1.12 1997/06/13 09:16:16 jhill +// connect proto changes +// // Revision 1.11 1997/05/01 19:59:09 jhill // new header file for ipAddrToA() // @@ -240,7 +243,7 @@ xRecvStatus casStreamIO::osdRecv(char *pInBuf, bufSizeT nBytes, // void casStreamIO::osdShow (unsigned level) const { - printf ("casStreamIO at %x\n", (unsigned) this); + printf ("casStreamIO at %p\n", this); if (level>1u) { char buf[64]; ipAddrToA(&this->addr, buf, sizeof(buf)); diff --git a/src/cas/os/vxWorks/casDGOS.cc b/src/cas/os/vxWorks/casDGOS.cc index a04536600..79b05ee30 100644 --- a/src/cas/os/vxWorks/casDGOS.cc +++ b/src/cas/os/vxWorks/casDGOS.cc @@ -6,6 +6,9 @@ * * * $Log$ + * Revision 1.2 1996/09/16 18:27:09 jhill + * vxWorks port changes + * * Revision 1.1 1996/09/04 22:06:45 jhill * installed * @@ -98,7 +101,7 @@ casDGOS::~casDGOS() void casDGOS::show(unsigned level) { this->casDGClient::show(level); - printf ("casDGOS at %x\n", (unsigned) this); + printf ("casDGOS at %p\n", this); if (taskIdVerify(this->clientTId) == OK) { taskShow(this->clientTId, level); } diff --git a/src/cas/os/vxWorks/casStreamOS.cc b/src/cas/os/vxWorks/casStreamOS.cc index 5ca86a39b..a7f2f9b54 100644 --- a/src/cas/os/vxWorks/casStreamOS.cc +++ b/src/cas/os/vxWorks/casStreamOS.cc @@ -4,6 +4,9 @@ // // // $Log$ +// Revision 1.3 1996/11/02 00:55:01 jhill +// many improvements +// // Revision 1.2 1996/09/16 18:27:11 jhill // vxWorks port changes // @@ -108,7 +111,7 @@ casStreamOS::~casStreamOS() void casStreamOS::show(unsigned level) { this->casStrmClient::show(level); - printf("casStreamOS at %x\n", (unsigned) this); + printf("casStreamOS at %p\n", this); if (taskIdVerify(this->clientTId)==OK) { taskShow(this->clientTId, level); }