Separation of logs Part - 2 10/5410/2
authorsphoorthi <sphoorthi.dayanand@radisys.com>
Wed, 13 Jan 2021 07:26:31 +0000 (12:56 +0530)
committersphoorthi <sphoorthi.dayanand@radisys.com>
Mon, 18 Jan 2021 10:02:41 +0000 (15:32 +0530)
Change-Id: Ie0f9e332ff788bf6332c3a5517c6f77151136885
Signed-off-by: sphoorthi <sphoorthi.dayanand@radisys.com>
src/5gnrmac/lwr_mac_ex_ms.c
src/5gnrmac/lwr_mac_handle_phy.c
src/5gnrmac/lwr_mac_upr_inf.c
src/5gnrmac/lwr_mac_util.c
src/5gnrmac/mac_rach.c

index ae44c99..f446545 100644 (file)
@@ -80,7 +80,7 @@ uint8_t lwrMacActvTsk(Pst *pst, Buffer *mBuf)
               case EVT_START_WLS_RCVR:\r
                  {\r
                     SPutMsg(mBuf);\r
-                    DU_LOG("\nLWR MAC: Starting WLS receiver thread");\r
+                    DU_LOG("\nINFO  -->  LWR MAC: Starting WLS receiver thread");\r
                     LwrMacRecvPhyMsg();\r
                     break;\r
                  }\r
@@ -88,7 +88,7 @@ uint8_t lwrMacActvTsk(Pst *pst, Buffer *mBuf)
               default:\r
                  {\r
                     SPutMsg(mBuf);\r
-                    DU_LOG("\nLWR MAC: Invalid event %d received", pst->event);\r
+                    DU_LOG("\nERROR  -->  LWR MAC: Invalid event %d received", pst->event);\r
                     ret = RFAILED;\r
                  }\r
            }\r
@@ -97,7 +97,7 @@ uint8_t lwrMacActvTsk(Pst *pst, Buffer *mBuf)
       default:\r
         {\r
            SPutMsg(mBuf);\r
-           DU_LOG("\nLWR MAC: Message from invalid source entity %d", pst->srcEnt);\r
+           DU_LOG("\nERROR  -->  LWR MAC: Message from invalid source entity %d", pst->srcEnt);\r
            ret = RFAILED;\r
         }\r
    }\r
index 28a0ea2..b07ac40 100644 (file)
@@ -120,7 +120,7 @@ uint8_t procSlotInd(fapi_slot_ind_t *fapiSlotInd)
    }
    else
    {
-      printf("\nLWR_MAC: Memory allocation failed in procSlotInd");
+      DU_LOG("\nERROR  -->  LWR_MAC: Memory allocation failed in procSlotInd");
       ret = RFAILED;
    }
 
@@ -158,14 +158,14 @@ uint8_t procStopInd()
    MAC_ALLOC_SHRABL_BUF(cellId, sizeof(uint16_t));
    if(!cellId)
    {
-      printf("\nLWR_MAC: Memory Allocation failed in procStopInd");
+      DU_LOG("\nERROR  -->  LWR_MAC: Memory Allocation failed in procStopInd");
       return RFAILED;
    }
 
    *cellId = lwrMacCb.cellCb[0].cellId;
    lwrMacCb.phyState = PHY_STATE_CONFIGURED;
    lwrMacCb.cellCb[0].state = PHY_STATE_CONFIGURED;
-   DU_LOG("\nLWR_MAC: PHY has moved to configured state");
+   DU_LOG("\nINFO  -->  LWR_MAC: PHY has moved to configured state");
 
    FILL_PST_LWR_MAC_TO_MAC(pst, EVENT_STOP_IND_TO_MAC);
    return (*sendStopIndOpts[pst.selector])(&pst, cellId);
@@ -198,7 +198,7 @@ uint8_t procRachInd(fapi_rach_indication_t  *fapiRachInd)
    MAC_ALLOC_SHRABL_BUF(rachInd, sizeof(RachInd));
    if(!rachInd)
    {
-      printf("\nLWR_MAC: Memory Allocation failed in procRachInd");
+      DU_LOG("\nERROR  -->  LWR_MAC: Memory Allocation failed in procRachInd");
       return RFAILED;
    }
 
@@ -257,7 +257,7 @@ uint8_t procCrcInd(fapi_crc_ind_t  *fapiCrcInd)
    MAC_ALLOC_SHRABL_BUF(crcInd, sizeof(CrcInd));
    if(!crcInd)
    {
-      printf("\nLWR_MAC: Memory Allocation failed in procCrcInd");
+      DU_LOG("\nERROR  -->  LWR_MAC: Memory Allocation failed in procCrcInd");
       return RFAILED;
    }
 
@@ -316,7 +316,7 @@ uint8_t procRxDataInd(fapi_rx_data_indication_t  *fapiRxDataInd)
    MAC_ALLOC_SHRABL_BUF(rxDataInd, sizeof(RxDataInd));
    if(!rxDataInd)
    {
-      printf("\nLWR_MAC: Memory Allocation failed in procRxDataInd");
+      DU_LOG("\nERROR  -->  LWR_MAC: Memory Allocation failed in procRxDataInd");
       return RFAILED;
    }
 
@@ -423,10 +423,11 @@ uint8_t procUciInd(fapi_uci_indication_t  *fapiUciInd)
    MAC_ALLOC_SHRABL_BUF(macUciInd, sizeof(UciInd));
    if(!macUciInd)
    {
-      printf("\nLWR_MAC: Memory Allocation failed in procUciInd");
+      DU_LOG("\nERROR  -->  LWR_MAC: Memory Allocation failed in procUciInd");
       return RFAILED;
    }
 
+   DU_LOG("\nDEBUG  -->  LWR_MAC: Processing UCI Indication");
    memset(macUciInd, 0, sizeof(UciInd));
    macUciInd->cellId = lwrMacCb.cellCb[0].cellId;
    macUciInd->slotInd.sfn = fapiUciInd->sfn; 
@@ -451,7 +452,7 @@ uint8_t procUciInd(fapi_uci_indication_t  *fapiUciInd)
          case UCI_IND_PUCCH_F2F3F4:
             break;
          default:
-            DU_LOG("\nLWR_MAC: Invalid Pdu Type %d at procmacUciInd()", macUciInd->pdus[pduIdx].pduType);
+            DU_LOG("\nERROR  -->  LWR_MAC: Invalid Pdu Type %d at procmacUciInd()", macUciInd->pdus[pduIdx].pduType);
            ret = RFAILED;
             break;
       }
@@ -463,7 +464,7 @@ uint8_t procUciInd(fapi_uci_indication_t  *fapiUciInd)
    }
    else
    {
-      DU_LOG("\nLWR_MAC: Failed sending UCI Ind to MAC");
+      DU_LOG("\nERROR  -->  LWR_MAC: Failed sending UCI Ind to MAC");
    }
    return ret;
 }
@@ -496,7 +497,7 @@ void procPhyMessages(uint16_t msgType, uint32_t msgSize, void *msg)
 #ifdef INTEL_TIMER_MODE
       case FAPI_VENDOR_EXT_UL_IQ_SAMPLES:
          {
-            printf("\nLWR_MAC: Received FAPI_VENDOR_EXT_UL_IQ_SAMPLES");
+            DU_LOG("\nDEBUG  -->  LWR_MAC: Received FAPI_VENDOR_EXT_UL_IQ_SAMPLES");
             //send config req
             uint16_t cellId = 1;
             sendToLowerMac(CONFIG_REQUEST, 0, (void *)&cellId);
@@ -517,7 +518,7 @@ void procPhyMessages(uint16_t msgType, uint32_t msgSize, void *msg)
         {
            if(lwrMacCb.phyState == PHY_STATE_CONFIGURED)
            {
-              DU_LOG("\nLWR_MAC: PHY has moved to running state");
+              DU_LOG("\nINFO  -->  LWR_MAC: PHY has moved to running state");
               lwrMacCb.phyState = PHY_STATE_RUNNING;
               lwrMacCb.cellCb[0].state = PHY_STATE_RUNNING;
            }
@@ -565,7 +566,7 @@ void procPhyMessages(uint16_t msgType, uint32_t msgSize, void *msg)
         }
       case FAPI_STOP_INDICATION:
         {
-           DU_LOG("\nLWR_MAC: Handling Stop Indication");
+           DU_LOG("\nINFO  -->  LWR_MAC: Handling Stop Indication");
            procStopInd();
            break;
         }  
index 9b92d6a..4a7319a 100644 (file)
@@ -42,7 +42,7 @@ uint8_t packCrcInd(Pst *pst, CrcInd *crcInd)
       Buffer *mBuf = NULLP;
       if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-        printf("\nLWR_MAC: Memory allocation failed in packCrcInd");
+        DU_LOG("\nERROR  --> LWR_MAC: Memory allocation failed in packCrcInd");
         return RFAILED;
       }
       CMCHKPK(oduPackPointer,(PTR)crcInd, mBuf);
@@ -107,7 +107,7 @@ uint8_t packRxDataInd(Pst *pst, RxDataInd *rxDataInd)
       Buffer *mBuf = NULLP;
       if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-        printf("\nLWR_MAC: Memory allocation failed in packRxDataInd");
+        DU_LOG("\nERROR  -->  LWR_MAC: Memory allocation failed in packRxDataInd");
         return RFAILED;
       }
       CMCHKPK(oduPackPointer,(PTR)rxDataInd, mBuf);
@@ -172,7 +172,7 @@ uint8_t packRachInd(Pst *pst, RachInd *rachInd)
       Buffer *mBuf = NULLP;
       if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-        printf("\nLWR_MAC: Memory allocation failed in packRachInd");
+        DU_LOG("\nERROR  -->  LWR_MAC: Memory allocation failed in packRachInd");
         return RFAILED;
       }
       CMCHKPK(oduPackPointer,(PTR)rachInd, mBuf);
@@ -236,7 +236,7 @@ uint8_t packSlotInd (Pst *pst, SlotIndInfo *slotInd)
       Buffer *mBuf = NULLP;
       if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-        printf("\nLWR_MAC: Memory allocation failed in packSlotInd");
+        DU_LOG("\nERROR  -->  LWR_MAC: Memory allocation failed in packSlotInd");
         return RFAILED;
       }
       CMCHKPK(oduPackPointer,(PTR)slotInd, mBuf);
@@ -300,7 +300,7 @@ uint8_t packStopInd(Pst *pst, uint16_t *cellId)
       Buffer *mBuf = NULLP;
       if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-        printf("\nLWR_MAC: Memory allocation failed in packStopInd");
+        DU_LOG("\nERROR  -->  LWR_MAC: Memory allocation failed in packStopInd");
         return RFAILED;
       }
       CMCHKPK(oduPackPointer,(PTR)cellId, mBuf);
@@ -363,7 +363,7 @@ uint8_t packUciInd(Pst *pst, UciInd *uciInd)
       Buffer *mBuf = NULLP;
       if(ODU_GET_MSG_BUF(pst->region, pst->pool, &mBuf) != ROK)
       {
-        printf("\nLWR_MAC: Memory allocation failed in packUciInd");
+        DU_LOG("\nERROR  -->  LWR_MAC: Memory allocation failed in packUciInd");
         return RFAILED;
       }
       CMCHKPK(oduPackPointer,(PTR)uciInd, mBuf);
index 6dfddc2..0a92691 100644 (file)
@@ -46,7 +46,7 @@ LwrMacCellCb * lwrMacGetCellCb
 
    if(cellId >= MAX_NUM_CELL)
    {
-      printf("\n Invalid Cell Id [%d]. rgClUtlGetCellCb failed.", cellId);
+      DU_LOG("\nERROR  -->  Invalid Cell Id [%d]. rgClUtlGetCellCb failed.", cellId);
       return NULLP;
    }
    
index 9efad6c..18a6200 100644 (file)
@@ -80,7 +80,7 @@ uint8_t fapiMacRachInd(Pst *pst, RachInd *rachInd)
    uint8_t      preambleIdx;
    RachIndInfo  rachIndInfo;
 
-   DU_LOG("\nMAC : Received RACH indication");
+   DU_LOG("\nINFO  -->  MAC : Received RACH indication");
    /* Considering one pdu and one preamble */
    pduIdx = 0;
    preambleIdx = 0;