/** @file rg_sch_dbm.c
@brief This file contains the APIs exposed for the database handling of the scheduler.
*/
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_FILE_ID=230;
-static int RLOG_MODULE_ID=4096;
/* header include files -- defines (.h) */
#include "common_def.h"
#include "lrg.h"
if (!(cellCb->rntiDb.freeRnti))
{
- RLOG_ARG1(L_ERROR,DBG_CELLID,cellCb->cellId,"RNTI exhausted count:%d",
+ DU_LOG("\nERROR --> SCH : RNTI exhausted count:%d",
cellCb->rntiDb.count);
return (NULLP);
}
cellCb->rntiDb.count--;
- printf("rgSCHDbmGetRnti::rntiLnk->rnti %u\n",rntiLnk->rnti);
+ DU_LOG("\nINFO --> SCH : rgSCHDbmGetRnti::rntiLnk->rnti %u\n",rntiLnk->rnti);
return (rntiLnk);
} /* rgSCHDbmGetRnti */
cell->qciArray[qciVal].dlTotal_UeCount / sampOc;
cfm->numUeQciDlCfm.numActvUeQci[idx].qciValue = qciVal;
- RLOG_ARG3(L_DEBUG,DBG_CELLID,cell->cellId,
- "L2_MEAS:CFM DL QCI %u TOTAL Count %lu Active UE %d ",
+ DU_LOG("\nDEBUG --> SCH : L2_MEAS:CFM DL QCI %u TOTAL Count %lu Active UE %d ",
qciVal,cell->qciArray[qciVal].dlTotal_UeCount,
cfm->numUeQciDlCfm.numActvUeQci[idx].numActvUeQci);
cell->qciArray[qciVal].dlTotal_UeCount / sampOc;
cfm->numUeQciDlCfm.numActvUeQci[idx].qciValue = qciVal;
- RLOG_ARG3(L_DEBUG,DBG_CELLID,cell->cellId,
- "L2_MEAS:CFM DL QCI %u TOTAL Count %lu Active UE %d ",
+ DU_LOG("\nDEBUG --> SCH : L2_MEAS:CFM DL QCI %u TOTAL Count %lu Active UE %d ",
qciVal,cell->qciArray[qciVal].dlTotal_UeCount,
cfm->numUeQciDlCfm.numActvUeQci[idx].numActvUeQci);
cell->qciArray[qciVal].ulTotal_UeCount/ sampOc;
cfm->numUeQciUlCfm.numActvUeQci[idx].qciValue = qciVal;
- RLOG_ARG3(L_DEBUG,DBG_CELLID,cell->cellId,
- "L2_MEAS:CFM UL QCI %d TOTAL Count %lu Active UE %d ",
+ DU_LOG("\nDEBUG --> SCH : L2_MEAS:CFM UL QCI %d TOTAL Count %lu Active UE %d ",
qciVal,cell->qciArray[qciVal].ulTotal_UeCount,
cfm->numUeQciUlCfm.numActvUeQci[idx].numActvUeQci);
cell->qciArray[qciVal].ulTotal_UeCount/ sampOc;
cfm->numUeQciUlCfm.numActvUeQci[idx].qciValue = qciVal;
- RLOG_ARG3(L_DEBUG,DBG_CELLID,cell->cellId,
- "L2_MEAS:CFM UL QCI %d TOTAL Count %lu Active UE %d ",
+ DU_LOG("\nDEBUG --> SCH : L2_MEAS:CFM UL QCI %d TOTAL Count %lu Active UE %d ",
qciVal,cell->qciArray[qciVal].ulTotal_UeCount,
cfm->numUeQciUlCfm.numActvUeQci[idx].numActvUeQci);
if((rgSCHUtlAllocSBuf(inst, (Data **)&measCb,
sizeof(RgSchL2MeasCb))) == RFAILED)
{
- RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId,"rgSchL2mAllocMeasCb():"
- "Allocation of RgSchL2MeasCb failed");
+ DU_LOG("\nERROR --> SCH : Allocation of RgSchL2MeasCb failed");
return (NULLP);
}
memcpy(&measCb->measReq, measInfo, sizeof(LrgSchMeasReqInfo));
{
RGSCHFILLERR(err, RGSCHERR_L2M_MEASREQ,
RGSCHERR_SCH_ALLOC_FAILED);
- RLOG_ARG0(L_ERROR,DBG_CELLID,cell->cellId, "rgSchL2mMeasReq():"
- "Allocation of RgSchL2MeasCb failed");
+ DU_LOG("\nERROR --> SCH : Allocation of RgSchL2MeasCb failed");
return RFAILED;
}
/*memcpy(&measCb->measReq, measInfo,\
@brief This module handles schedulers' power control functionality
*/
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_MODULE_ID=4096;
-static int RLOG_FILE_ID=188;
/* header include files -- defines (.h) */
#include "common_def.h"
#include "lrg.h"
}
#endif
}
- RLOG_ARG4(L_UNUSED,DBG_CELLID,cell->cellId,
- "UEID:%d Output Max Rb (%d), phVal (%d) AvailPwr (%d) ",
+ DU_LOG("\nDEBUG --> SCH : UEID:%d Output Max Rb (%d), phVal (%d) AvailPwr (%d) ",
ue->ueId, maxRb, uePwr->phVal, availPwr);
- RLOG_ARG3(L_UNUSED,DBG_CELLID,cell->cellId,
- "UEID:%d pwrPerRb %d remPuschPwr %d",
+ DU_LOG("\nDEBUG --> SCH : UEID:%d pwrPerRb %d remPuschPwr %d",
ue->ueId,
uePwr->pwrPerRb,
uePwr->remPuschPwr);
rgSCHPwrOnPuschPwrUpd(cell, ue);
- RLOG_ARG4(L_DEBUG,DBG_UEID,ue->ueId,
- "Output: Reported PHR[%d] cqi[%u] allocRb[%u] uePwr->pwrPerRb[%d]",
+ DU_LOG("\nDEBUG --> SCH : Output: Reported PHR[%d] cqi[%u] allocRb[%u] uePwr->pwrPerRb[%d]",
uePwr->phVal,
allocInfo->cqi,
allocInfo->numRb,
}
uePwr->pucchIdx = pucchIdx;
#ifndef ALIGN_64BIT
- RLOG_ARG4(L_UNUSED,DBG_CELLID,cell->cellId,
- "<GRP_PWR>PucchRntiCb cfgdUes(%ld %lu %lu) UEID:%d",
+ DU_LOG("\nDEBUG --> SCH : <GRP_PWR>PucchRntiCb cfgdUes(%ld %lu %lu) UEID:%d",
pucchRntiCb->cfgdUes.count,((uint32_t)pucchRntiCb->cfgdUes.first),
((uint32_t)pucchRntiCb->cfgdUes.last),ue->ueId);
- RLOG_ARG3(L_UNUSED,DBG_CELLID,cell->cellId,
- "UEID:%d isFmt3a(%u) ueNode(%ld)",
+ DU_LOG("\nDEBUG --> SCH : UEID:%d isFmt3a(%u) ueNode(%ld)",
ue->ueId,pucchRntiCb->isFmt3a,
pucchRntiCb->schdLnk.node);
- RLOG_ARG4(L_UNUSED,DBG_CELLID,cell->cellId,
- "toBeSchdUes(%ld %lu %lu) tpcRnti(%u)",
+ DU_LOG("\nDEBUG --> SCH : toBeSchdUes(%ld %lu %lu) tpcRnti(%u)",
pucchRntiCb->toBeSchdUes.count,
((uint32_t)pucchRntiCb->toBeSchdUes.first),
((uint32_t)pucchRntiCb->toBeSchdUes.last),
pucchRntiCb->tpcRnti);
#else
- RLOG_ARG4(L_UNUSED,DBG_CELLID,cell->cellId,
- "<GRP_PWR>PucchRntiCb cfgdUes(%ld %lu %lu) UEID:%d",
+ DU_LOG("\nDEBUG --> SCH : <GRP_PWR>PucchRntiCb cfgdUes(%d %lu %lu) UEID:%d",
pucchRntiCb->cfgdUes.count,((uint64_t)pucchRntiCb->cfgdUes.first),
((uint64_t)pucchRntiCb->cfgdUes.last),ue->ueId);
- RLOG_ARG3(L_UNUSED,DBG_CELLID,cell->cellId,
- "UEID:%d isFmt3a(%u) ueNode(%ld)",
+ DU_LOG("\nDEBUG --> SCH : UEID:%d isFmt3a(%u) ueNode(%ld)",
ue->ueId,pucchRntiCb->isFmt3a,
pucchRntiCb->schdLnk.node);
- RLOG_ARG4(L_UNUSED,DBG_CELLID,cell->cellId,
- "toBeSchdUes(%ld %lu %lu) tpcRnti(%u)",
+ DU_LOG("\nDEBUG --> SCH : toBeSchdUes(%d %lu %lu) tpcRnti(%u)",
pucchRntiCb->toBeSchdUes.count,
((uint64_t)pucchRntiCb->toBeSchdUes.first),
((uint64_t)pucchRntiCb->toBeSchdUes.last),
/** @file rg_sch_tmr.c
@brief This module does processing related to timers for the scheduler.
*/
-static const char* RLOG_MODULE_NAME="MAC";
-static int RLOG_MODULE_ID=4096;
-static int RLOG_FILE_ID=175;
/* header include files -- defines (.h) */
#include "common_def.h"
{
case RG_SCH_TMR_ACKNACK_REP:
arg.timers = &(ue->ackNakRepCb.ackNakRepTmr);
- RLOG_ARG0(L_ERROR,DBG_INSTID,cell->instIdx,
- "Hit AckNackRep timer");
+ DU_LOG("\nINFO --> SCH : Hit AckNackRep timer");
break;
case RG_SCH_TMR_MEASGAP:
arg.timers = &(ue->measGapCb.measGapTmr);
}
#endif
default:
- RLOG_ARG0(L_ERROR,DBG_INSTID,cell->instIdx,
- "rgSCHTmrStartTmr() Incorrect Timer event");
+ DU_LOG("\nERROR --> SCH : rgSCHTmrStartTmr() Incorrect Timer event");
return;
}
#endif
default:
- RLOG_ARG0(L_ERROR,DBG_INSTID,cell->instIdx,
- "rgSCHTmrStopTmr() Incorrect Timer event");
+ DU_LOG("\nERROR --> SCH : rgSCHTmrStopTmr() Incorrect Timer event");
return;
}
/*TODO Needto handle TA Timer expiry for EMTC UE*/
if(TRUE == ue->isEmtcUe)
{
- RLOG0(L_INFO,"TA Timer Expiry is not handled for EMTC UE\n");
+ DU_LOG("\nINFO --> SCH : TA Timer Expiry is not handled for EMTC UE\n");
break;
}
#endif
default:
if(ue)
{
- RLOG_ARG0(L_ERROR,DBG_INSTID,ue->cell->instIdx,
- "rgSCHTmrProcTmr() Incorrect Timer event");
+ DU_LOG("\nERROR --> SCH : rgSCHTmrProcTmr() Incorrect Timer event");
}
return;
}
SCH_ALLOC(dlMsgAlloc, sizeof(DlMsgAlloc));
if(!dlMsgAlloc)
{
- DU_LOG("\nMAC: Memory Allocation failed for ded DL msg alloc");
+ DU_LOG("\nERROR --> SCH : Memory Allocation failed for ded DL msg alloc");
return RFAILED;
}
memset(dlMsgAlloc, 0, sizeof(DlMsgAlloc));
ret = schBroadcastAlloc(cell,dlBrdcstAlloc,slot);
if(ret != ROK)
{
- DU_LOG("\nschBroadcastAlloc failed");
+ DU_LOG("\nERROR --> SCH : schBroadcastAlloc failed");
return (ret);
}
}
SCH_ALLOC(rarAlloc, sizeof(RarAlloc));
if(!rarAlloc)
{
- DU_LOG("\nMAC: Memory Allocation failed for RAR alloc");
+ DU_LOG("\nERROR --> SCH : Memory Allocation failed for RAR alloc");
return RFAILED;
}
SCH_ALLOC(msg4Alloc, sizeof(DlMsgAlloc));
if(!msg4Alloc)
{
- DU_LOG("\nMAC: Memory Allocation failed for msg4 alloc");
+ DU_LOG("\nERROR --> SCH : Memory Allocation failed for msg4 alloc");
return RFAILED;
}
SCH_ALLOC(dciInfo, sizeof(DciInfo));
if(!dciInfo)
{
- DU_LOG("\nMAC: Memory Allocation failed for dciInfo alloc");
+ DU_LOG("\nERROR --> SCH : Memory Allocation failed for dciInfo alloc");
return RFAILED;
}
memset(dciInfo,0,sizeof(DciInfo));
ret = sendDlAllocToMac(&dlSchedInfo, schInst);
if(ret != ROK)
{
- DU_LOG("\nSending DL Broadcast allocation from SCH to MAC failed");
+ DU_LOG("\nERROR --> SCH : Sending DL Broadcast allocation from SCH to MAC failed");
return (ret);
}