Separation of logs in based on error, info, debug
[o-du/l2.git] / src / du_app / du_mgr_main.c
index 4feb2c6..13ef272 100644 (file)
@@ -73,7 +73,7 @@ uint8_t duAppInit(SSTskId sysTskId)
       return RFAILED;
    }
 
-   DU_LOG("\nDU_APP : DU APP created and registered \
+   DU_LOG("\nINFO   -->  DU_APP : DU APP created and registered \
    to %d sys task", sysTskId);
    return ROK;
 }
@@ -109,7 +109,7 @@ uint8_t egtpInit(SSTskId sysTskId)
       return RFAILED;
    }
  
-    DU_LOG("\nDU_APP : EGTP created and registered \
+    DU_LOG("\nINFO   -->  DU_APP : EGTP created and registered \
     to %d sys task", sysTskId);
     return ROK;
 }
@@ -145,7 +145,7 @@ uint8_t sctpInit(SSTskId sysTskId)
       return RFAILED;
    }
 
-   DU_LOG("\nDU_APP : SCTP TAPA task created and registered to %d sys task", 
+   DU_LOG("\nINFO   -->  DU_APP : SCTP TAPA task created and registered to %d sys task", 
          sysTskId);
    return ROK;
 }
@@ -191,7 +191,7 @@ uint8_t rlcDlInit(SSTskId sysTskId)
       return RFAILED;
    }
 
-   DU_LOG("\nDU_APP : RLC DL and MAC TAPA task created and registered to \
+   DU_LOG("\nINFO   -->  DU_APP : RLC DL and MAC TAPA task created and registered to \
    %d sys task", sysTskId);
    return ROK;
 }
@@ -225,7 +225,7 @@ uint8_t rlcUlInit(SSTskId sysTskId)
    {
       return RFAILED;
    }
-   DU_LOG("\nDU_APP : RLC UL TAPA task created and registered to \
+   DU_LOG("\nINFO   -->  DU_APP : RLC UL TAPA task created and registered to \
    %d sys task", sysTskId);
    return ROK;
 }
@@ -260,7 +260,7 @@ uint8_t lwrMacInit(SSTskId sysTskId)
       return RFAILED;
    }
 
-   DU_LOG("\nDU_APP : LWR MAC TAPA task created and registered to %d sys task",
+   DU_LOG("\nINFO   -->  DU_APP : LWR MAC TAPA task created and registered to %d sys task",
          sysTskId);
    return ROK;
 }
@@ -293,7 +293,7 @@ uint8_t commonInit()
    /* system task for DU APP */
    if(ODU_CREATE_TASK(PRIOR0, &du_app_stsk) != ROK)
    {
-      DU_LOG("\nDU_APP : System Task creation for DU APP failed");
+      DU_LOG("\nERROR  -->  DU_APP : System Task creation for DU APP failed");
       return RFAILED;
    }
    ODU_SET_THREAD_AFFINITY(&du_app_stsk, SS_AFFINITY_MODE_EXCL, 15, 0);
@@ -301,7 +301,7 @@ uint8_t commonInit()
    /* system task for EGTP */
    if(ODU_CREATE_TASK(PRIOR0, &egtp_stsk) != ROK)
    {
-      DU_LOG("\nDU_APP : System Task creation for EGTP failed");
+      DU_LOG("\nERROR  -->  DU_APP : System Task creation for EGTP failed");
       return RFAILED;
    }
    ODU_SET_THREAD_AFFINITY(&egtp_stsk, SS_AFFINITY_MODE_EXCL, 16, 0);
@@ -309,7 +309,7 @@ uint8_t commonInit()
    /* system task for RLC_DL and MAC */
    if(ODU_CREATE_TASK(PRIOR0, &rlc_mac_cl_stsk) != ROK)
    {
-      DU_LOG("\nDU_APP : System Task creation for RLC DL/MAC failed");
+      DU_LOG("\nERROR  -->  DU_APP : System Task creation for RLC DL/MAC failed");
       return RFAILED;
    }
    pthread_attr_init(&attr);
@@ -319,7 +319,7 @@ uint8_t commonInit()
    /* system task for RLC UL */
    if(ODU_CREATE_TASK(PRIOR1, &rlc_ul_stsk) != ROK)
    {
-      DU_LOG("\nDU_APP : System Task creation for RLC UL failed");
+      DU_LOG("\nERROR  -->  DU_APP : System Task creation for RLC UL failed");
       return RFAILED;
    }
    ODU_SET_THREAD_AFFINITY(&rlc_ul_stsk, SS_AFFINITY_MODE_EXCL, 18, 0);
@@ -327,7 +327,7 @@ uint8_t commonInit()
    /* system task for SCTP receiver thread */
    if(ODU_CREATE_TASK(PRIOR0, &sctp_stsk) != ROK)
    {
-      DU_LOG("\nDU_APP : System Task creation for SCTP failed");
+      DU_LOG("\nERROR  -->  DU_APP : System Task creation for SCTP failed");
       return RFAILED;
    }
    ODU_SET_THREAD_AFFINITY(&sctp_stsk, SS_AFFINITY_MODE_EXCL, 19, 0);
@@ -335,7 +335,7 @@ uint8_t commonInit()
    /* system task for lower-mac receiver thread */
    if(ODU_CREATE_TASK(PRIOR0, &lwr_mac_stsk) != ROK)
    {
-      DU_LOG("\nDU_APP : System Task creation for Lower MAC failed");
+      DU_LOG("\nERROR  -->  DU_APP : System Task creation for Lower MAC failed");
       return RFAILED;
    }
    ODU_SET_THREAD_AFFINITY(&lwr_mac_stsk, SS_AFFINITY_MODE_EXCL, 20, 0);
@@ -343,37 +343,37 @@ uint8_t commonInit()
    /* Create TAPA tasks */
    if(duAppInit(du_app_stsk) != ROK)
    {
-      DU_LOG("\nDU_APP : DU APP TAPA Task initialization failed");
+      DU_LOG("\nERROR  -->  DU_APP : DU APP TAPA Task initialization failed");
       return RFAILED;
    }
 
    if(egtpInit(egtp_stsk) != ROK)
    {
-      DU_LOG("\nDU_APP : EGTP TAPA Task initialization failed");
+      DU_LOG("\nERROR  -->  DU_APP : EGTP TAPA Task initialization failed");
       return RFAILED;
    }
 
    if(sctpInit(sctp_stsk) != ROK)
    {
-      DU_LOG("\nDU_APP : SCTP TAPA Task initialization failed");
+      DU_LOG("\nERROR  -->  DU_APP : SCTP TAPA Task initialization failed");
       return RFAILED;
    }
 
    if(rlcDlInit(rlc_mac_cl_stsk) != ROK)
    {
-      DU_LOG("\nDU_APP : RLC DL Tapa Task initialization failed");
+      DU_LOG("\nERROR  -->  DU_APP : RLC DL Tapa Task initialization failed");
       return RFAILED;
    } 
 
    if(rlcUlInit(rlc_ul_stsk) != ROK)
    {
-     DU_LOG("\nDU_APP : RLC UL Tapa Task initialization failed");
+     DU_LOG("\nERROR  -->  DU_APP : RLC UL Tapa Task initialization failed");
      return RFAILED;
    } 
 
    if(lwrMacInit(lwr_mac_stsk) != ROK)
    {
-      DU_LOG("\nDU_APP : Lower MAC Tapa Task initialization failed");
+      DU_LOG("\nERROR  -->  DU_APP : Lower MAC Tapa Task initialization failed");
       return RFAILED;
    }