diff --git a/src/cas/example/simple/exPV.cc b/src/cas/example/simple/exPV.cc index 8647db3b2..66e1ddba9 100644 --- a/src/cas/example/simple/exPV.cc +++ b/src/cas/example/simple/exPV.cc @@ -204,12 +204,13 @@ void exPV::show(unsigned level) const { if (level>1u) { if ( this->pValue.valid () ) { - printf("exPV: cond=%d\n", this->pValue->getStat()); - printf("exPV: sevr=%d\n", this->pValue->getSevr()); - printf("exPV: value=%f\n", (double) *this->pValue); + printf ( "exPV: cond=%d\n", this->pValue->getStat () ); + printf ( "exPV: sevr=%d\n", this->pValue->getSevr () ); + printf ( "exPV: value=%f\n", static_cast < double > ( * this->pValue ); } - printf("exPV: interest=%d\n", this->interest); - printf("exPV: pScanTimer=%p\n", this->pScanTimer); + printf ( "exPV: interest=%d\n", this->interest ); + printf ( "exPV: pScanTimer=%p\n", + static_cast < const void * > ( this->pScanTimer ) ); } } diff --git a/src/cas/generic/st/casIntfOS.cc b/src/cas/generic/st/casIntfOS.cc index 43125dedf..c2c6bb288 100644 --- a/src/cas/generic/st/casIntfOS.cc +++ b/src/cas/generic/st/casIntfOS.cc @@ -76,10 +76,11 @@ casServerReg::~casServerReg() // // casIntfOS::show () // -void casIntfOS::show (unsigned level) const +void casIntfOS::show ( unsigned level ) const { - printf ("casIntfOS at %p\n", this); - this->casDGIntfOS::show (level); + printf ( "casIntfOS at %p\n", + static_cast < const void * > ( this ) ); + this->casDGIntfOS::show ( level ); } //