X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fmt%2Fss_msg.c;h=87e10376c3509803cca5db352b776c2d928bc137;hb=refs%2Fchanges%2F15%2F9315%2F5;hp=9e89c3f6e0211560cba27df7a3f2b29e3a482436;hpb=76c62ae031c51373e76356f157feccc0cae9fe60;p=o-du%2Fl2.git diff --git a/src/mt/ss_msg.c b/src/mt/ss_msg.c index 9e89c3f6e..87e10376c 100644 --- a/src/mt/ss_msg.c +++ b/src/mt/ss_msg.c @@ -649,7 +649,9 @@ Buffer *mBuf CM_MEM_GET_REGION(tmpThrReg) if(tmpThrReg == 0xFF) { +#ifdef ERROR_PRINT printf("\n Not able to get region \n"); +#endif return RFAILED; } #endif @@ -3631,7 +3633,9 @@ Buffer **dstBuf (Void) SPutDBuf(minfo1->region, minfo1->pool, newblk); newblk = curblk; } +#ifdef ERROR_PRINT printf("\nFailed to get the buffer of size %s %d\n", __FILE__, __LINE__); +#endif (Void) SPutMsg(*dstBuf); return (ROUTRES); } @@ -4100,7 +4104,9 @@ Buffer **bufPtr #ifndef SS_DBUF_REFLOCK_DISABLE if((SInitLock (&(dptr->dBufLock), SS_LOCK_MUTEX)) != 0) { +#ifdef ERROR_PRINT printf("\nFalied to destroy lock\n"); +#endif } #endif @@ -4257,7 +4263,9 @@ Buffer *buf ret = SUnlock(&dptr->dBufLock) ; if((SDestroyLock(&dptr->dBufLock)) != 0) { +#ifdef ERROR_PRINT printf("\nFalied to destroy lock\n"); +#endif } #endif /* free buffer to region */ @@ -5401,6 +5409,7 @@ S16 dst /* destination id */ mlen = ((SsMsgInfo*)(mBuf->b_rptr))->len; reg = ((SsMsgInfo*)(mBuf->b_rptr))->region; /*ss013.301: Fixed Warnings for 32/64 bit compilation*/ +#ifdef DEBUG_PRINT sprintf(prntBuf,"\nmsg: qlen: %04d mlen: %04d %02d-->%02d region: %02d\n", (uint16_t)qlen,(uint16_t)mlen,src,dst,reg); SPrint( prntBuf); @@ -5410,6 +5419,7 @@ S16 dst /* destination id */ SPrint((S8*) "dat: "); #ifdef XEON_SPECIFIC_CHANGES printf("\ndat: "); +#endif #endif if (mlen == 0) @@ -5433,9 +5443,11 @@ S16 dst /* destination id */ /* print hex */ tdata[j]=data; sprintf( prntBuf,"%02x ",(uint16_t) data); +#ifdef DEBUG_PRINT SPrint( prntBuf); #ifdef XEON_SPECIFIC_CHANGES printf("%s\n", prntBuf); +#endif #endif if (cptr == tmp->b_wptr) { @@ -5451,9 +5463,11 @@ S16 dst /* destination id */ else { sprintf( prntBuf," "); +#ifdef DEBUG_PRINT SPrint( prntBuf ); #ifdef XEON_SPECIFIC_CHANGES printf("%s\n", prntBuf); +#endif #endif } } @@ -5465,25 +5479,31 @@ S16 dst /* destination id */ { /* print character if printable */ sprintf(prntBuf,"%c",tdata[k]); +#ifdef DEBUG_PRINT SPrint( prntBuf); #ifdef XEON_SPECIFIC_CHANGES printf("%s\n", prntBuf); +#endif #endif } else { /* print . if non printable */ +#ifdef DEBUG_PRINT SPrint((S8*) "."); #ifdef XEON_SPECIFIC_CHANGES printf("."); #endif +#endif } } sprintf(prntBuf,"\n "); +#ifdef DEBUG_PRINT SPrint(prntBuf); #ifdef XEON_SPECIFIC_CHANGES printf("%s\n", prntBuf); #endif +#endif } return ROK; @@ -7558,7 +7578,9 @@ Buffer** mBuf #ifndef SS_DBUF_REFLOCK_DISABLE if((SInitLock (&(dptr->dBufLock), SS_LOCK_MUTEX)) != 0) { +#ifdef ERROR_PRINT printf("\nFalied to destroy lock\n"); +#endif } #endif @@ -7668,7 +7690,9 @@ Buffer *buf ret = SUnlock(&dptr->dBufLock) ; if((SDestroyLock(&dptr->dBufLock)) != 0) { +#ifdef ERROR_PRINT printf("\nFalied to destroy lock\n"); +#endif } #endif #ifdef SS_HISTOGRAM_SUPPORT @@ -7789,7 +7813,9 @@ Buffer** mBuf #ifndef SS_DBUF_REFLOCK_DISABLE if((SInitLock (&(dptr->dBufLock), SS_LOCK_MUTEX)) != 0) { +#ifdef ERROR_PRINT printf("\nFalied to destroy lock\n"); +#endif } #endif @@ -7936,7 +7962,9 @@ Buffer** mBuf #ifndef SS_DBUF_REFLOCK_DISABLE if((SInitLock (&(dptr->dBufLock), SS_LOCK_MUTEX)) != 0) { +#ifdef ERROR_PRINT printf("\nFalied to destroy lock\n"); +#endif } #endif