本文整理汇总了C++中LOG_E函数的典型用法代码示例。如果您正苦于以下问题:C++ LOG_E函数的具体用法?C++ LOG_E怎么用?C++ LOG_E使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了LOG_E函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: from_wx
void DialogShiftTimes::SaveHistory(json::Array const& shifted_blocks) {
json::Object new_entry;
new_entry["filename"] = context->subsController->Filename().filename().string();
new_entry["is by time"] = shift_by_time->GetValue();
new_entry["is backward"] = shift_backward->GetValue();
new_entry["amount"] = from_wx(shift_by_time->GetValue() ? shift_time->GetValue() : shift_frames->GetValue());
new_entry["fields"] = time_fields->GetSelection();
new_entry["mode"] = selection_mode->GetSelection();
new_entry["selection"] = shifted_blocks;
history->push_front(new_entry);
try {
json::Writer::Write(*history, agi::io::Save(history_filename).Get());
}
catch (agi::fs::FileSystemError const& e) {
LOG_E("dialog_shift_times/save_history") << "Cannot save shift times history: " << e.GetChainedMessage();
}
}
开发者ID:seawaveT,项目名称:Aegisub,代码行数:19,代码来源:dialog_shift_times.cpp
示例2: getTrustletSession
//------------------------------------------------------------------------------
void TrustZoneDevice::notify(
uint32_t sessionId
)
{
// Check if it is MCP session - handle openSession() command
if (sessionId != SID_MCP) {
// Check if session ID exists to avoid flooding of nq by clients
TrustletSession *ts = getTrustletSession(sessionId);
if (ts == NULL) {
LOG_E("no session with id=%d", sessionId);
return;
}
LOG_I(" Sending notification for session %d to MobiCore", sessionId);
} else {
LOG_I(" Sending MCP notification to MobiCore");
}
// Notify MobiCore about new data
notification_t notification = {
.sessionId = sessionId,
.payload = 0
};
nq->putNotification(¬ification);
//IMPROVEMENT-2012-03-07-maneaval What happens when/if nsiq fails?
//In the old days an exception would be thrown but it was uncertain
//where it was handled, some server(sock or Netlink). In that case
//the server would just die but never actually signaled to the client
//any error condition
nsiq();
}
//------------------------------------------------------------------------------
uint32_t TrustZoneDevice::getMobicoreStatus(void)
{
uint32_t status;
pMcKMod->fcInfo(1, &status, NULL);
return status;
}
开发者ID:IllusionRom-deprecated,项目名称:android_platform_hardware_samsung_slsi_exynos5,代码行数:44,代码来源:TrustZoneDevice.cpp
示例3: LOG_I
//------------------------------------------------------------------------------
mcResult_t CMcKMod::unlockWsmL2(uint32_t handle)
{
int ret = 0;
LOG_I(" Unlocking World Shared Memory with handle %d", handle);
if (!isOpen()) {
LOG_E("no connection to kmod");
return MC_DRV_ERR_KMOD_NOT_OPEN;
}
ret = ioctl(fdKMod, MC_IO_UNLOCK_WSM, handle);
// Failure here is not really important
if (ret != 0) {
LOG_I("ret = %d", ret);
}
return ret;
}
开发者ID:Fevax,项目名称:hardware_samsung_slsi,代码行数:20,代码来源:CMcKMod.cpp
示例4: CHECK_F
bool _AutoPilot::init(void* pKiss)
{
CHECK_F(!this->_ThreadBase::init(pKiss));
Kiss* pK = (Kiss*)pKiss;
pK->m_pInst = this;
//create action instance
Kiss* pCC = pK->o("action");
CHECK_T(pCC->empty());
Kiss** pItr = pCC->getChildItr();
int i = 0;
while (pItr[i])
{
Kiss* pAction = pItr[i];
i++;
bool bInst = false;
F_INFO(pAction->v("bInst", &bInst));
if (!bInst)continue;
if (m_nAction >= N_ACTION)LOG(FATAL);
ActionBase** pA = &m_pAction[m_nAction];
m_nAction++;
//Add action modules below
ADD_ACTION(RC_visualFollow);
ADD_ACTION(APMcopter_landing);
ADD_ACTION(APMcopter_guided);
ADD_ACTION(HM_base);
ADD_ACTION(HM_follow);
ADD_ACTION(APMrover_base);
ADD_ACTION(APMrover_follow);
//Add action modules above
LOG_E("Unknown action class: "+pAction->m_class);
}
return true;
}
开发者ID:yankailab,项目名称:OpenKAI,代码行数:42,代码来源:_AutoPilot.cpp
示例5: fuzz_runVerifier
static bool fuzz_runVerifier(honggfuzz_t * hfuzz, fuzzer_t * crashedFuzzer)
{
bool ret = false;
int crashFd = -1;
uint8_t *crashBuf = NULL;
off_t crashFileSz = 0;
crashBuf = files_mapFile(crashedFuzzer->crashFileName, &crashFileSz, &crashFd, false);
if (crashBuf == NULL) {
LOG_E("Couldn't open and map '%s' in R/O mode", crashedFuzzer->crashFileName);
goto bail;
}
LOG_I("Launching verifier for %" PRIx64 " hash", crashedFuzzer->backtrace);
for (int i = 0; i < _HF_VERIFIER_ITER; i++) {
fuzzer_t vFuzzer = {
.pid = 0,
.timeStartedMillis = util_timeNowMillis(),
.crashFileName = {0},
.pc = 0ULL,
.backtrace = 0ULL,
.access = 0ULL,
.exception = 0,
.dynamicFileSz = 0,
.dynamicFile = NULL,
.hwCnts = {
.cpuInstrCnt = 0ULL,
.cpuBranchCnt = 0ULL,
.pcCnt = 0ULL,
.pathCnt = 0ULL,
.customCnt = 0ULL,
},
.sanCovCnts = {
.hitBBCnt = 0ULL,
.totalBBCnt = 0ULL,
.dsoCnt = 0ULL,
.iDsoCnt = 0ULL,
.newBBCnt = 0ULL,
.crashesCnt = 0ULL,
},
.report = {'\0'},
.mainWorker = false
开发者ID:quangnh89,项目名称:honggfuzz,代码行数:42,代码来源:fuzz.c
示例6: handle_cwGetGenericDeviceLogs
bool handle_cwGetGenericDeviceLogs(CAbstractPeer& peer, const char **pkt)
{
int sizePkt = 0, devId, fromTime, decimation, numEntries, i, entriesWritten = 0;
uint32_t entriesRead = 0;
bool printHeader = true;
if (!skipInt(pkt, &devId) ||
!skipInt(pkt, &fromTime) ||
!skipInt(pkt, &decimation) ||
!skipInt(pkt, &numEntries)
)
{
LOG_E( "Invalid pkg");
}
else
{
for(i=0; i < g_activeDevices.count(); i++)
{
if(devId == g_activeDevices[i]->m_ID)
{
sizePkt = m_snprintf(g_devScrapBuffer, sizeof(g_devScrapBuffer),
"%d;%d;%d;", cwReplyGenericDeviceLogs,
g_activeDevices[i]->m_deviceType, devId);
do
{
sizePkt += deviceReadLog(devId, fromTime, decimation,
(char*)(g_devScrapBuffer + sizePkt), sizeof(g_devScrapBuffer) - sizePkt,
numEntries, printHeader, entriesWritten, entriesRead);
fromTime = (fromTime/8192 + 1)*8192;
}
while( numEntries > entriesWritten && SystemClock.now(eTZ_UTC).toUnixTime() > fromTime);
//LOG_I("cwGetGenericDeviceLogs %s", g_devScrapBuffer);
peer.sendToPeer((const char*)g_devScrapBuffer, sizePkt);
break;
}
}
}
}
开发者ID:ADiea,项目名称:HA-8266,代码行数:42,代码来源:commWeb.cpp
示例7: LOG_E
//------------------------------------------------------------------------------
bool TrustZoneDevice::nsiq(
void
)
{
// There is no need to set the NON-IDLE flag here. Sending an N-SIQ will
// make the MobiCore run until it could set itself to a state where it
// set the flag itself. IRQs and FIQs are disbaled for this period, so
// there is no way the NWd can interrupt here.
// not needed: mcFlags->schedule = MC_FLAG_SCHEDULE_NON_IDLE;
int32_t ret = pMcKMod->fcNSIQ();
if (ret != 0) {
LOG_E("pMcKMod->fcNSIQ() failed : %d", ret);
return false;
}
// now we have to wake the scheduler, so MobiCore gets CPU time.
schedSync.signal();
return true;
}
开发者ID:IllusionRom-deprecated,项目名称:android_platform_hardware_samsung_slsi_exynos5,代码行数:21,代码来源:TrustZoneDevice.cpp
示例8: malloc
char *str_sub (const char *s, unsigned int start, unsigned int end) {
char *new_s = NULL;
int i;
if (s != NULL && start < end) {
new_s = malloc (sizeof (*new_s) * (end - start + 2));
if (new_s != NULL) {
for (i = start; i <= end; i++) {
new_s[i-start] = s[i];
}
new_s[i-start] = '\0';
}
else {
LOG_E(OTG,"Insufficient memory \n");
exit (-1);
}
}
return new_s;
}
开发者ID:mspublic,项目名称:openair4G-mirror,代码行数:20,代码来源:otg.c
示例9: mRAL_send_link_parameters_report_indication
//-----------------------------------------------------------------------------
void mRAL_send_link_parameters_report_indication(ral_ue_instance_t instanceP,
MIH_C_TRANSACTION_ID_T *transaction_id_pP,
MIH_C_LINK_TUPLE_ID_T *link_identifier_pP,
MIH_C_LINK_PARAM_RPT_LIST_T *link_parameters_report_list_pP)
{
//-----------------------------------------------------------------------------
MIH_C_Message_Link_Parameters_Report_indication_t message;
Bit_Buffer_t *bb_p;
int message_total_length;
module_id_t mod_id = instanceP - NB_eNB_INST;
bb_p = new_BitBuffer_0();
BitBuffer_wrap(bb_p, g_msg_codec_send_buffer, (unsigned int)MSG_CODEC_SEND_BUFFER_SIZE);
memset(&message, 0, sizeof (MIH_C_Message_Link_Parameters_Report_indication_t));
message.header.version = (MIH_C_VERSION_T)MIH_C_PROTOCOL_VERSION;
message.header.service_identifier = (MIH_C_SID_T)2;
message.header.operation_code = (MIH_C_OPCODE_T)3;
message.header.action_identifier = (MIH_C_AID_T)5;
message.header.transaction_id = *transaction_id_pP;
MIH_C_MIHF_ID_set(&message.source, (u_int8_t*)g_ue_ral_obj[mod_id].link_id, strlen(g_ue_ral_obj[mod_id].link_id));
MIH_C_MIHF_ID_set(&message.destination, (u_int8_t*)g_ue_ral_obj[mod_id].mihf_id, strlen(g_ue_ral_obj[mod_id].mihf_id));
memcpy(&message.primitive.LinkIdentifier, link_identifier_pP, sizeof(MIH_C_LINK_TUPLE_ID_T));
memcpy(&message.primitive.LinkParametersReportList_list, link_parameters_report_list_pP, sizeof(MIH_C_LINK_PARAM_RPT_LIST_T));
message_total_length = MIH_C_Link_Message_Encode_Link_Parameters_Report_indication(bb_p, &message);
if (mRAL_send_to_mih(instanceP, bb_p->m_buffer,message_total_length)<0) {
LOG_E(RAL_UE, ": Send Link_Parameters_Report.indication\n");
} else {
LOG_D(RAL_UE, ": Sent Link_Parameters_Report.indication\n");
}
free_BitBuffer(bb_p);
}
开发者ID:awesome-security,项目名称:openairinterface5g,代码行数:42,代码来源:lteRALue_mih_msg.c
示例10: main
int main(int argc, char **argv) {
struct sigaction action;
int exitCode;
parseArgs(argc,argv);
initLogs();
if (keepAsDaemon) {
LOG_N("Trying to keep as a daemon...");
if (daemon(false,false)<0) {
LOG_E(strerror(errno));
LOG_W("... continuing daemonless");
} else {
LOG_N("... Success ");
}
}
memset(&action,0,sizeof(action));
action.sa_handler =signalHandler;
sigaction(SIGHUP,&action,NULL);
sigaction(SIGTERM,&action,NULL);
// signal(SIGHUP,signalHandler); /* catch hangup signal */
// signal(SIGTERM,signalHandler); /* catch kill signal */
exitCode = runMonitor();
return exitCode;
//return EXIT_SUCCESS;
}
开发者ID:hclander,项目名称:daemons,代码行数:41,代码来源:gpsd.c
示例11: mRAL_send_capability_discover_confirm
//-----------------------------------------------------------------------------
void mRAL_send_capability_discover_confirm(ral_ue_instance_t instanceP,
MIH_C_TRANSACTION_ID_T *transaction_id_pP,
MIH_C_STATUS_T *status_pP,
MIH_C_LINK_EVENT_LIST_T *supported_link_event_list_pP,
MIH_C_LINK_CMD_LIST_T *supported_link_command_list_pP)
{
//-----------------------------------------------------------------------------
MIH_C_Message_Link_Capability_Discover_confirm_t message;
Bit_Buffer_t *bb_p;
int message_total_length;
module_id_t mod_id = instanceP - NB_eNB_INST;
bb_p = new_BitBuffer_0();
BitBuffer_wrap(bb_p, g_msg_codec_send_buffer, (unsigned int)MSG_CODEC_SEND_BUFFER_SIZE);
memset(&message, 0, sizeof (MIH_C_Message_Link_Capability_Discover_confirm_t));
message.header.version = (MIH_C_VERSION_T)MIH_C_PROTOCOL_VERSION;
message.header.service_identifier = (MIH_C_SID_T)1;
message.header.operation_code = (MIH_C_OPCODE_T)0;
message.header.action_identifier = (MIH_C_AID_T)1;
message.header.transaction_id = *transaction_id_pP;
MIH_C_MIHF_ID_set(&message.source, (u_int8_t*)g_ue_ral_obj[mod_id].link_id, strlen(g_ue_ral_obj[mod_id].link_id));
MIH_C_MIHF_ID_set(&message.destination, (u_int8_t*)g_ue_ral_obj[mod_id].mihf_id, strlen(g_ue_ral_obj[mod_id].mihf_id));
message.primitive.Status = *status_pP;
message.primitive.SupportedLinkEventList = supported_link_event_list_pP;
message.primitive.SupportedLinkCommandList = supported_link_command_list_pP;
message_total_length = MIH_C_Link_Message_Encode_Capability_Discover_confirm(bb_p, &message);
if (mRAL_send_to_mih(instanceP, bb_p->m_buffer,message_total_length)<0) {
LOG_E(RAL_UE, ": Send Link_Capability_Discover.confirm\n");
} else {
LOG_D(RAL_UE, ": Sent Link_Capability_Discover.confirm\n");
}
free_BitBuffer(bb_p);
}
开发者ID:awesome-security,项目名称:openairinterface5g,代码行数:42,代码来源:lteRALue_mih_msg.c
示例12: while
void *receive_thread(void *args) {
flexran_agent_instance_t *d = args;
void *data;
int size;
int priority;
err_code_t err_code;
Protocol__FlexranMessage *msg;
while (1) {
while (flexran_agent_msg_recv(d->enb_id, FLEXRAN_AGENT_DEFAULT, &data, &size, &priority) == 0) {
LOG_D(FLEXRAN_AGENT,"received message with size %d\n", size);
// Invoke the message handler
msg=flexran_agent_handle_message(d->enb_id, data, size);
free(data);
// check if there is something to send back to the controller
if (msg != NULL){
data=flexran_agent_pack_message(msg,&size);
if (flexran_agent_msg_send(d->enb_id, FLEXRAN_AGENT_DEFAULT, data, size, priority)) {
err_code = PROTOCOL__FLEXRAN_ERR__MSG_ENQUEUING;
goto error;
}
LOG_D(FLEXRAN_AGENT,"sent message with size %d\n", size);
}
}
}
return NULL;
error:
LOG_E(FLEXRAN_AGENT,"receive_thread: error %d occured\n",err_code);
return NULL;
}
开发者ID:ShibinMathew36,项目名称:OAI-step,代码行数:41,代码来源:flexran_agent.c
示例13: send_chopstick_query_req
int send_chopstick_query_req(void* entity)
{
if (!entity) return FSM_FAIL;
CVTTO_PHILOS(phi, entity);
LOG_D("---%s need chopstick---fsmid[%d]", phi->philos->name, phi->fsmid);
int chop_idx;
if (phi->chops[0] == -1){
chop_idx = QUERY_LEFT(phi->philos->whoami);
LOG_D("philos[%d] needs left chop[%d]", phi->philos->whoami, chop_idx);
}
else if (phi->chops[1] == -1){
chop_idx = QUERY_RIGHT(phi->philos->whoami);
LOG_D("philos[%d] needs right chop[%d]", phi->philos->whoami, chop_idx);
}
else {
LOG_E("No need to get chopstick,fsm[%d]", phi->fsmid);
return FSM_FAIL;
}
msg_t * m = pack_chop_req_msg(chop_idx, GET, phi->fsmid);
int ret = fsm_entity_start_timer(entity, QUERY_CHOP_TM, QUERY_CHOPSTICK_TIMEOUT);
if (0 != ret){
LOG_NE("start timer failed");
free (m);
return FSM_FAIL;
}
if (SM_OK != send_msg(m)){
perror("send msg failed");
LOG_NE("send msg failed");
return FSM_FAIL;
}
phi->nextjump = proc_chopstick_query_resp;
philos_set_status(phi->philos, BUSY);
LOG_D("send chopstick query req success. fsmid[%d]", phi->fsmid);
return FSM_OK;
}
开发者ID:yangluoshen,项目名称:FSM,代码行数:41,代码来源:philosfsm.c
示例14: copy
void Hotkey::BuildHotkey(std::string const& context, json::Object const& hotkeys) {
for (auto const& command : hotkeys) {
const json::Array& command_hotkeys = command.second;
for (auto const& hotkey : command_hotkeys) {
std::vector<std::string> keys;
try {
const json::Array& arr_mod = hotkey["modifiers"];
keys.reserve(arr_mod.size() + 1);
copy(arr_mod.begin(), arr_mod.end(), back_inserter(keys));
keys.push_back(hotkey["key"]);
}
catch (json::Exception const& e) {
LOG_E("agi/hotkey/load") << "Failed loading hotkey for command '" << command.first << "': " << e.what();
}
ComboInsert(Combo(context, command.first, keys));
}
}
}
开发者ID:metkaz,项目名称:Aegisub,代码行数:21,代码来源:hotkey.cpp
示例15: nas_ue_process_events
static int nas_ue_process_events(struct epoll_event *events, int nb_events)
{
int event;
int exit_loop = FALSE;
LOG_I(NAS, "[UE] Received %d events\n", nb_events);
for (event = 0; event < nb_events; event++) {
if (events[event].events != 0)
{
/* If the event has not been yet been processed (not an itti message) */
if (events[event].data.fd == user_fd) {
exit_loop = nas_user_receive_and_process(&user_fd, NULL);
} else {
LOG_E(NAS, "[UE] Received an event from an unknown fd %d!\n", events[event].data.fd);
}
}
}
return (exit_loop);
}
开发者ID:mspublic,项目名称:openair4G-mirror,代码行数:21,代码来源:nas_ue_task.c
示例16: __attribute__
char *sys_read_asset(const char *path, int *size)
{
FILE *file;
int read_size __attribute__((unused));
char *ret;
int default_size;
size = size ?: &default_size;
file = fopen(path, "rb");
if (!file) LOG_E("cannot file file %s", path);
assert(file);
fseek(file, 0, SEEK_END);
*size = ftell(file);
fseek(file, 0, SEEK_SET);
ret = malloc(*size + 1);
read_size = fread(ret, *size, 1, file);
assert(read_size == 1 || *size == 0);
fclose(file);
ret[*size] = '\0';
return ret;
}
开发者ID:Bossmojoman,项目名称:goxel,代码行数:21,代码来源:system.c
示例17: tiny_udp_multicast_open
TinyRet tiny_udp_multicast_open(int *fd, const char *group, uint16_t port, bool block)
{
TinyRet ret = TINY_RET_OK;
do
{
*fd = socket(AF_INET, SOCK_DGRAM, 0);
if (*fd < 0)
{
LOG_E(TAG, "socket failed");
ret = TINY_RET_E_SOCKET_FD;
#ifdef _WIN32
DWORD e = GetLastError();
LOG_D(TAG, "socket, e = %d", e);
#else
LOG_D(TAG, "socket: %s", strerror(errno));
#endif
break;
}
ret = tiny_join_multicast_group(*fd, group, port);
if (RET_FAILED(ret))
{
break;
}
if (!block)
{
ret = tiny_socket_set_nonblock(*fd);
if (RET_FAILED(ret))
{
break;
}
}
}
while (0);
return ret;
}
开发者ID:jxfengzi,项目名称:UpnpLan,代码行数:40,代码来源:tiny_socket.c
示例18: ip_cmsg_recv_pktinfo
/**
* Put an IP_PKTINFO control message into msg ancillary data buffer.
*/
static void ip_cmsg_recv_pktinfo(ci_netif* netif, const ci_ip_pkt_fmt* pkt,
struct cmsg_state *cmsg_state)
{
/* TODO: This is horribly inefficient -- two system calls. Could be made
* cheap with a user-level llap table.
*/
struct in_pktinfo info;
ci_uint32 addr;
int hwport;
addr = oo_ip_hdr_const(pkt)->ip_daddr_be32;
info.ipi_addr.s_addr = addr;
/* Set the ifindex the pkt was received at. */
{
ci_ifid_t ifindex = 0;
int rc = 0;
hwport = netif->state->intf_i_to_hwport[pkt->intf_i];
rc = cicp_llap_find(CICP_HANDLE(netif), &ifindex,
CI_HWPORT_ID(hwport), pkt->vlan);
if( rc != 0 )
LOG_E(ci_log("%s: cicp_llap_find(intf_i=%d, hwport=%d) failed rc=%d",
__FUNCTION__, pkt->intf_i, hwport, rc));
info.ipi_ifindex = ifindex;
}
/* RFC1122: The specific-destination address is defined to be the
* destination address in the IP header unless the header contains a
* broadcast or multicast address, in which case the specific-destination
* is an IP address assigned to the physical interface on which the
* datagram arrived. */
/*\ FIXME: we should drop the packet if this call fails */
cicp_ipif_pktinfo_query(CICP_HANDLE(netif), netif, OO_PKT_P(pkt),
info.ipi_ifindex,
&info.ipi_spec_dst.s_addr
);
ci_put_cmsg(cmsg_state, IPPROTO_IP, IP_PKTINFO, sizeof(info), &info);
}
开发者ID:arnetheduck,项目名称:openonload,代码行数:43,代码来源:ip_cmsg.c
示例19: config_req_rlc_um
//-----------------------------------------------------------------------------
void config_req_rlc_um (
const protocol_ctxt_t* const ctxt_pP,
const srb_flag_t srb_flagP,
const rlc_um_info_t * const config_um_pP,
const rb_id_t rb_idP)
{
rlc_union_t *rlc_union_p = NULL;
rlc_um_entity_t *rlc_p = NULL;
hash_key_t key = RLC_COLL_KEY_VALUE(ctxt_pP->module_id, ctxt_pP->rnti, ctxt_pP->enb_flag, rb_idP, srb_flagP);
hashtable_rc_t h_rc;
h_rc = hashtable_get(rlc_coll_p, key, (void**)&rlc_union_p);
if (h_rc == HASH_TABLE_OK) {
rlc_p = &rlc_union_p->rlc.um;
LOG_D(RLC, PROTOCOL_RLC_UM_CTXT_FMT" CONFIG_REQ timer_reordering=%d sn_field_length=%d is_mXch=%d RB %u\n",
PROTOCOL_RLC_UM_CTXT_ARGS(ctxt_pP,rlc_p),
config_um_pP->timer_reordering,
config_um_pP->sn_field_length,
config_um_pP->is_mXch,
rb_idP);
rlc_um_init(ctxt_pP, rlc_p);
if (rlc_um_fsm_notify_event (ctxt_pP, rlc_p, RLC_UM_RECEIVE_CRLC_CONFIG_REQ_ENTER_DATA_TRANSFER_READY_STATE_EVENT)) {
rlc_um_set_debug_infos(ctxt_pP, rlc_p, srb_flagP, rb_idP);
rlc_um_configure(
ctxt_pP,
rlc_p,
config_um_pP->timer_reordering,
config_um_pP->sn_field_length,
config_um_pP->sn_field_length,
config_um_pP->is_mXch);
}
} else {
LOG_E(RLC, PROTOCOL_RLC_UM_CTXT_FMT" CONFIG_REQ RB %u RLC UM NOT FOUND\n",
PROTOCOL_RLC_UM_CTXT_ARGS(ctxt_pP,rlc_p),
rb_idP);
}
}
开发者ID:sdnnfv,项目名称:openair4G,代码行数:41,代码来源:rlc_um_control_primitives.c
示例20: rlc_am_send_sdu
//-----------------------------------------------------------------------------
void rlc_am_send_sdu (rlc_am_entity_t *rlcP,u32_t frame, u8_t eNB_flag)
//-----------------------------------------------------------------------------
{
/*#ifndef USER_MODE
unsigned long int rlc_um_time_us;
int min, sec, usec;
#endif*/
if ((rlcP->output_sdu_in_construction)) {
#ifdef TRACE_RLC_AM_SEND_SDU
LOG_D(RLC, "\n\n\n[FRAME %05d][RLC_AM][MOD %02d][RB %02d][SEND_SDU] %d bytes sdu %p\n", frame, rlcP->module_id, rlcP->rb_id, rlcP->output_sdu_size_to_write, rlcP->output_sdu_in_construction);
/*#ifndef USER_MODE
rlc_um_time_us = (unsigned long int)(rt_get_time_ns ()/(RTIME)1000);
sec = (rlc_um_time_us/ 1000000);
min = (sec / 60) % 60;
sec = sec % 60;
usec = rlc_um_time_us % 1000000;
msg ("[RLC_UM_LITE][RB %d] at time %2d:%2d.%6d\n", rlcP->rb_id, min, sec , usec);
#endif*/
#endif
if (rlcP->output_sdu_size_to_write > 0) {
#ifdef TRACE_RLC_STATS
rlcP->rx_sdus += 1;
#endif
#ifdef TEST_RLC_AM
rlc_am_v9_3_0_test_data_ind (rlcP->module_id, rlcP->rb_id, rlcP->output_sdu_size_to_write,
rlcP->output_sdu_in_construction);
#else
rlc_data_ind (rlcP->module_id, frame, eNB_flag, rlcP->rb_id, rlcP->output_sdu_size_to_write, rlcP->output_sdu_in_construction, rlcP->is_data_plane);
#endif
rlcP->output_sdu_in_construction = NULL;
} else {
LOG_E(RLC, "[FRAME %05d][RLC_AM][MOD %02d][RB %02d][SEND_SDU] ERROR SIZE <= 0 ... DO NOTHING, SET SDU SIZE TO 0\n", frame,rlcP->module_id, rlcP->rb_id);
//msg("[RLC_AM][MOD %d] Freeing mem_block ...\n", rlcP->module_id);
//free_mem_block (rlcP->output_sdu_in_construction);
assert(3==4);
}
rlcP->output_sdu_size_to_write = 0;
}
}
开发者ID:huier103,项目名称:virtual,代码行数:41,代码来源:rlc_am_reassembly.c
注:本文中的LOG_E函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论