本文整理汇总了C++中Log_print1函数的典型用法代码示例。如果您正苦于以下问题:C++ Log_print1函数的具体用法?C++ Log_print1怎么用?C++ Log_print1使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Log_print1函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: RMAN_exit
/*
* ======== RMAN_exit ========
* Exit the generic IRES RMAN and free the memory back to the Memory manager
* using which it was created.
*/
IRES_Status RMAN_exit()
{
IArg key;
Int i;
IRES_Status status = IRES_OK;
if (rmanInit == 0) {
return (IRES_ENOINIT);
}
Log_print0(Diags_ENTRY, "[+E] RMAN_exit> Enter ");
rmanInternalState->info.refCount--;
if (--rmanInit == 0) {
if (initStatus != IRES_OK) {
Log_print0(Diags_USER7, "[+7] RMAN_exit> RMAN_init call didn't "
"happen successfully. RMAN_exit will not unregister "
"any resources.");
status = IRES_ENOINIT;
}
else {
key = IGateProvider_enter(gate);
Log_print1(Diags_EXIT, "[+X] RMAN_exit> tableIndex = %d",
(IArg)(resTable.tableIndex));
/* Unregister the entries */
Log_print0(Diags_EXIT, "[+X] RMAN_exit> Unregistering resources");
for (i = 0; i < resTable.tableIndex; i++) {
if (RMAN_TABLE[i] != NULL) {
/* Even if there is an error, unregister the rest */
if ((status = RMAN_TABLE[i]->exit()) != IRES_OK) {
Log_print2(Diags_USER7, "[+7] RMAN_exit> Error "
"unregistering the IRESMAN implementation "
"0x%x, status = %d",
(IArg)(RMAN_TABLE[i]), (IArg)status);
status = IRES_EFAIL;
}
}
}
/* Free the RMAN object */
freeInternalState();
initStatus = IRES_ENOINIT;
/* Free the gate after leaving it */
IGateProvider_leave(gate, key);
OsalSupport_deleteGate(gate);
gate = NULL;
}
}
Log_print1(Diags_EXIT, "[+X] RMAN_exit> Exit (status=%d)", (IArg)status);
return (status);
}
开发者ID:andreimironenko,项目名称:framework_components,代码行数:65,代码来源:rman.c
示例2: IRES_SDMA_constructHandle
/* ARGSUSED - this line tells the compiler not to warn about unused args. */
IRES_Handle IRES_SDMA_constructHandle(
IRES_ProtocolArgs * resProtocolArgs,
IALG_MemRec *memRecs,
IRESMAN_ConstructArgs * constructHandleArgs,
IRES_Status *status)
{
IRES_SDMA_Handle handle = (IRES_SDMA_Handle)memRecs[0].base;
IRES_SDMA_ConstructHandleArgs * constructArgs =
(IRES_SDMA_ConstructHandleArgs *)constructHandleArgs;
Log_print3(Diags_ENTRY,
"[+E] _IRES_SDMA_constructHandle> Enter (resProtcolArgs=0x%x, "
"memRecs=0x%x, constructHandleArgs=0x%x)",
(IArg)resProtocolArgs, (IArg)memRecs, (IArg)constructHandleArgs);
Assert_isTrue(resProtocolArgs != NULL, (Assert_Id)NULL);
Assert_isTrue(memRecs != NULL, (Assert_Id)NULL);
Assert_isTrue(constructHandleArgs != NULL, (Assert_Id)NULL);
Assert_isTrue(status != NULL, (Assert_Id)NULL);
if (handle == NULL) {
*status = IRES_ENORESOURCE;
Log_print0(Diags_USER7,
"[+7] _IRES_SDMA_constructHandle> NULL handle passed in "
"memRecs[0].base");
Log_print1(Diags_EXIT,
"[+X] _IRES_SDMA_constructHandle> Exit (handle=0x%x, "
"status=IRES_ENORESOURCE)", (IArg)handle);
return ((IRES_Handle) NULL);
}
((IRES_SDMA_Handle)handle)->ires.getStaticProperties =
IRES_SDMA_getStaticProperties;
/*
* Use the constructHandleargs to populate the handle
*/
handle->channel = (SDMA_ChannelDescriptor *)
(handle + sizeof(IRES_SDMA_Obj));
handle->ires.persistent = constructArgs->persistent;
*status = IRES_OK;
Log_print1(Diags_EXIT,
"[+X] _IRES_SDMA_constructHandle> Exit (handle=0x%x, status=IRES_OK)",
(IArg)handle);
return ((IRES_Handle)handle);
}
开发者ID:andreimironenko,项目名称:framework_components,代码行数:56,代码来源:ires_sdma.c
示例3: Algorithm_addGroup
/*
* ======== Algorithm_addGroup ========
*/
Bool Algorithm_addGroup(Int groupId)
{
Bool retVal = TRUE;
Log_print1(Diags_ENTRY, "[+E] Algorithm_addGroup> Enter(groupId=%d)",
(IArg)groupId);
Log_print1(Diags_EXIT, "[+X] Algorithm_addGroup> Exit (status = %d)",
(IArg)retVal);
return (retVal);
}
开发者ID:mobiaqua,项目名称:ti-ce,代码行数:15,代码来源:Algorithm_BIOS.c
示例4: procDelete
/*
* ======== procDelete ========
*/
static Void procDelete(Processor_Handle proc)
{
Int16 heapId;
Bool unregisterAndDeleteHeap;
Log_print1(Diags_ENTRY, "[+E] Processor_delete_d> Enter (proc=0x%x)",
(IArg)proc);
if (proc == NULL) {
goto procDelete_return;
}
if (proc->hHeap != NULL) {
unregisterAndDeleteHeap = FALSE;
if (proc->hHeap == defaultHeapH) {
if (--defaultHeapRefCount == 0) {
/* this is the last one using the default heap */
unregisterAndDeleteHeap = TRUE;
}
}
else {
unregisterAndDeleteHeap = TRUE;
}
if (unregisterAndDeleteHeap) {
heapId = proc->heapId;
if (heapId != Processor_INVALID) {
Log_print1(Diags_USER1, "[+1] Processor_delete_d> "
"MessageQ_unregisterHeap(heapId: %d)",
(IArg)heapId);
if (MessageQ_unregisterHeap(heapId) != MessageQ_S_SUCCESS) {
Log_print1(Diags_USER7, "[+7] Processor_delete_d> "
"MessageQ_unregisterHeap(heapId: %d) "
"failed",
heapId);
}
}
/* delete heap used by message queue */
Log_print1(Diags_USER1, "[+1] Processor_delete_d> "
"calling HeapBufMP_delete(hHeap: 0x%x)",
(IArg)(proc->hHeap));
HeapBufMP_delete(&proc->hHeap);
}
}
procDelete_return:
Log_print1(Diags_EXIT, "[+X] Processor_delete_d> return", (IArg)proc);
}
开发者ID:andreimironenko,项目名称:codec-engine,代码行数:56,代码来源:Processor_noOS.c
示例5: Processor_create
/*
* ======== Processor_create ========
*/
Processor_Handle Processor_create(String imageName, String memMap,
Processor_Attrs *attrs)
{
Processor_Handle proc = NULL;
struct stat statBuf;
Assert_isTrue(curInit == TRUE, (Assert_Id)NULL);
Log_print3(Diags_ENTRY, "[+E] Processor_create> "
"Enter(imageName='%s', memMap='%s', attrs=0x%x)",
(IArg)imageName, (IArg)memMap, (IArg)attrs);
if (attrs == NULL) {
attrs = &Processor_ATTRS;
}
if (stat(imageName, &statBuf) != 0) {
Log_print1(Diags_USER7, "[+7] Processor_create> "
"ERROR: cannot access file %s", (IArg)imageName);
return (NULL);
}
proc = Memory_alloc(sizeof(Processor_Obj), NULL);
if (proc == NULL) {
Log_print0(Diags_USER7, "[+7] Processor_create> "
"ERROR: Memory_alloc failed");
return (NULL);
}
proc->attrs = *attrs;
proc->imageName = imageName;
proc->memMapName = memMap;
proc->loaded = FALSE;
proc->fileId = 0xffffffff;
proc->heapH = NULL;
proc->procMgrH = NULL;
proc->heapId = Processor_INVALID;
proc->loadCallBackStatus = -1;
proc->startCallBackStatus = -1;
proc->useExtLoader = attrs->useExtLoader;
if (doCmd(CREATE, proc) != SUCCESS) {
Processor_delete(proc);
return (NULL);
}
proc->loaded = TRUE;
Log_print1(Diags_EXIT, "[+X] Processor_create> return (0x%x)", (IArg)proc);
return (proc);
}
开发者ID:andreimironenko,项目名称:codec-engine,代码行数:54,代码来源:Processor_dsplink.c
示例6: main
/* ARGSUSED */
int main(Int argc, Char * argv[])
{
IRES_Status status;
Int size = 0;
// TODO: Use Diags_setMask()
#if 0
GT_init();
GT_create(&CURTRACE, "ti.sdo.fc.rman.examples.hdvicp");
GT_set(MOD_NAME "=01234567");
GT_set("ti.sdo.fc.rman" "=4567");
GT_set("ti.sdo.fc.dskt2" "=67");
GT_set("ti.sdo.fc.ires.hdvicp" "=01234567");
/* GT_set("ti.sdo.fc.dskt2" "=01234567");*/
#endif
Log_print0(Diags_ENTRY, "[+E] _main> Enter ");
status = RMAN_init();
if (IRES_OK != status) {
Log_print1(Diags_USER7, "[+7] main> RMAN_init() failed [%d]",
(IArg)status);
System_abort("RMAN_init() failed, aborting...\n");
}
/*
* Supply initialization information for the RESMAN while registering
*/
size = sizeof(IRESMAN_HdVicpParams);
configParams.baseConfig.allocFxn = RMAN_PARAMS.allocFxn;
configParams.baseConfig.freeFxn = RMAN_PARAMS.freeFxn;
configParams.baseConfig.size = size;
/* Register the HDVICP protocol/resource manager with the
* generic resource manager */
status = RMAN_register(&IRESMAN_HDVICP, (IRESMAN_Params *)&configParams);
if (IRES_OK != status) {
Log_print1(Diags_USER7, "[+7] main> RMAN_register() failed [%d]",
(IArg)status);
System_abort("RMAN_register() failed, aborting...\n");
}
Log_print0(Diags_EXIT, "[+X] main> Exit");
BIOS_start();
return(0);
}
开发者ID:andreimironenko,项目名称:framework_components,代码行数:52,代码来源:main_BIOS.c
示例7: RcmClient_Instance_finalize
Int RcmClient_Instance_finalize(RcmClient_Object *obj)
{
SemThread_Handle semH;
Int status = RcmClient_S_SUCCESS;
Log_print1(Diags_ENTRY, "--> "FXNN": (obj=0x%x)", (IArg)obj);
if (NULL != obj->newMail) {
List_delete(&obj->newMail);
}
if (NULL != obj->recipients) {
List_delete(&obj->recipients);
}
if (NULL != obj->queueLock) {
semH = SemThread_Handle_downCast(obj->queueLock);
SemThread_delete(&semH);
obj->queueLock = NULL;
}
if (NULL != obj->mbxLock) {
semH = SemThread_Handle_downCast(obj->mbxLock);
SemThread_delete(&semH);
obj->mbxLock = NULL;
}
if (MessageQ_INVALIDMESSAGEQ != obj->serverMsgQ) {
MessageQ_close((MessageQ_QueueId *)(&obj->serverMsgQ));
}
if (NULL != obj->errorMsgQue) {
MessageQ_delete(&obj->errorMsgQue);
}
if (NULL != obj->msgQue) {
MessageQ_delete(&obj->msgQue);
}
if (NULL != obj->sync) {
SyncSemThread_delete((SyncSemThread_Handle *)(&obj->sync));
}
/* destruct the instance gate */
GateThread_destruct(&obj->gate);
Log_print1(Diags_EXIT, "<-- "FXNN": %d", (IArg)status);
return(status);
}
开发者ID:GAnthony,项目名称:sysbios-rpmsg,代码行数:50,代码来源:RcmClient.c
示例8: DSKT2_deactivateAlg
/*
* ======== DSKT2_deactivateAlg ========
*
* Performs 'optimistic' algorithm activation/deactivation!
* That is: alg 'deactivation' does not happen until some *other* algorithm
* instance needs to be activated.
* When activating the new algorithm, the former (i.e.'current') active
* instance gets deactivated.
*/
Void DSKT2_deactivateAlg(Int scratchId, IALG_Handle alg)
{
#ifndef DSKT2_DISABLELAZYD
Bool isScratch;
#endif
Log_print2(Diags_ENTRY, "[+E] DSKT2_deactivateAlg> Enter "
"(scratchId=%d, algHandle=0x%x)", (IArg)scratchId, (IArg)alg);
#ifndef DSKT2_DISABLELAZYD
isScratch = (scratchId >= 0) && (scratchId < DSKT2_NUM_SCRATCH_GROUPS);
if (isScratch) {
_DSKT2_lastActiveAlg[scratchId] = alg;
_DSKT2_activeAlg[scratchId] = NULL;
Log_print1(Diags_USER4, "[+4] DSKT2_deactivateAlg> "
"Lazy deactivate of algorithm 0x%x", (IArg)alg);
}
else {
#endif
if ((alg != NULL) && (alg->fxns->algDeactivate != NULL)) {
Log_print1(Diags_USER4,
"[+4] DSKT2_deactivateAlg> Real deactivate of algorithm 0x%x",
(IArg)alg);
Log_print1(Diags_USER2, "[+2] DSKT2_deactivateAlg> "
"Release lock for scratch group %d", (IArg)scratchId);
/* Deactivate if alg is not using scratch */
alg->fxns->algDeactivate(alg);
}
#ifndef DSKT2_DISABLELAZYD
}
#endif
/*
* Release lock that was acquired during activate
*/
DSKT2_releaseLock(scratchId);
if (_DSKT2_yielded) {
_DSKT2_yielded = 0;
_DSKT2_NumYielded--;
}
Log_print0(Diags_EXIT, "[+X] DSKT2_deactivateAlg> Exit");
}
开发者ID:mobiaqua,项目名称:ti-fc,代码行数:59,代码来源:dskt2dact.c
示例9: SystemCfg_createResources
Int SystemCfg_createResources(SystemCfg_Object *obj)
{
Error_Block eb;
Int status = 0;
HeapBuf_Params heapBufP;
IHeap_Handle heapH;
Log_print1(Diags_ENTRY | Diags_INFO, "--> "FXNN": (obj=0x%x)",(IArg)obj);
Error_init(&eb);
/* allocate heap backing store from SR_0 heap */
heapH = (IHeap_Handle)SharedRegion_getHeap(0);
obj->rcmHeapBufSize = 5 * 128;
obj->rcmHeapBufBase = Memory_alloc(heapH, obj->rcmHeapBufSize, 128, &eb);
if (Error_check(&eb)) {
Log_error1(FXNN": out of memory: size=%u", obj->rcmHeapBufSize);
status = -1;
goto leave;
}
/* create heap for messages */
HeapBuf_Params_init(&heapBufP);
heapBufP.blockSize = 128; // header = 52 B, payload = 76 B
heapBufP.numBlocks = 5; // 5 messages, total heap storage = 640 B
heapBufP.align = 128; // align on cache line boundary
heapBufP.buf = obj->rcmHeapBufBase; // heap storage base address
heapBufP.bufSize = obj->rcmHeapBufSize; // heap storage size
obj->rcmHeapH = HeapBuf_create(&heapBufP, &eb);
if (Error_check(&eb)) {
Log_error0(FXNN": HeapBuf_create() failed");
status = -1;
goto leave;
}
/* register this heap with MessageQ */
Log_print2(Diags_INFO,
FXNN": MessageQ_registerHeap: (rcmHeapH: 0x%x, heapId: %d)",
(IArg)(obj->rcmHeapH), (IArg)SystemCfg_RcmMsgHeapId_CompDev);
MessageQ_registerHeap((Ptr)(obj->rcmHeapH), SystemCfg_RcmMsgHeapId_CompDev);
leave:
Log_print1(Diags_EXIT, "<-- "FXNN": %d", (IArg)status);
return(status);
}
开发者ID:andreimironenko,项目名称:framework_components,代码行数:49,代码来源:SystemCfg_host_bios.c
示例10: RcmClient_destruct
Int RcmClient_destruct(RcmClient_Struct *structPtr)
{
RcmClient_Object *obj = (RcmClient_Object *)(structPtr);
Int status = RcmClient_S_SUCCESS;
Log_print1(Diags_ENTRY, "--> %s: ()", (IArg)FXNN);
Log_print1(Diags_LIFECYCLE, FXNN": instance destruct: 0x%x", (IArg)obj);
/* finalize the object */
status = RcmClient_Instance_finalize(obj);
Log_print2(Diags_EXIT, "<-- %s: %d", (IArg)FXNN, (IArg)status);
return(status);
}
开发者ID:GAnthony,项目名称:sysbios-rpmsg,代码行数:15,代码来源:RcmClient.c
示例11: Comm_delete
/*
* ======== Comm_delete ========
*/
Void Comm_delete(Comm_Handle comm)
{
Assert_isTrue(curInit > 0, (Assert_Id)NULL);
Log_print1(Diags_ENTRY, "[+E] Comm_delete> Enter (comm=0x%x)", (IArg)comm);
if (comm != NULL) {
if (comm->id >= 0) {
msgctl(comm->id, IPC_RMID, NULL);
}
Memory_free(NULL, comm, sizeof(Comm_Obj));
}
Log_print1(Diags_EXIT, "[+X] Comm_delete> return", (IArg)comm);
}
开发者ID:andreimironenko,项目名称:codec-engine,代码行数:18,代码来源:Comm_posix.c
示例12: doCmd
/*
* ======== doCmd ========
*/
static Int doCmd(Int cmdId, Processor_Handle proc)
{
Int result;
IArg key;
Log_print2(Diags_ENTRY, "[+E] doCmd> Enter (cmdId=%d, proc=0x%x)",
(IArg)cmdId, (IArg)proc);
//pthread_mutex_lock(&dcmd.gate);
key = GateThread_enter(dcmd.gate);
dcmd.proc = proc;
dcmd.cmdId = cmdId;
//pthread_cond_signal(&dcmd.cmdPresent);
SemThread_post(dcmd.cmdPresent, NULL);
//while (dcmd.reply == NONE) {
// pthread_cond_wait(&dcmd.replyPresent, &dcmd.gate);
//}
SemThread_pend(dcmd.replyPresent, SemThread_FOREVER, NULL);
result = dcmd.reply;
dcmd.reply = NONE;
//pthread_mutex_unlock(&dcmd.gate);
GateThread_leave(dcmd.gate, key);
Log_print1(Diags_EXIT, "[+X] doCmd> Exit (result=%d)", (IArg)result);
return (result);
}
开发者ID:andreimironenko,项目名称:codec-engine,代码行数:34,代码来源:Processor_dsplink.c
示例13: Processor_delete
/*
* ======== Processor_delete ========
*/
Void Processor_delete(Processor_Handle proc)
{
Log_print1(Diags_ENTRY, "[+E] Processor_delete> Enter(proc=0x%x)",
(IArg)proc);
#if MESSAGEQ_ENABLED
if (proc != NULL) {
procDelete(proc);
Log_print1(Diags_USER1,
"[+1] Processor_delete(0x%x) freeing object ...", (IArg)proc);
xdc_runtime_Memory_free(NULL, proc, sizeof(Processor_Obj));
}
#endif
Log_print0(Diags_EXIT, "[+X] Processor_delete> return");
}
开发者ID:andreimironenko,项目名称:codec-engine,代码行数:19,代码来源:Processor_noOS.c
示例14: main
Int main(Int argc, Char* argv[])
{
Error_Block eb;
Task_Params taskParams;
Log_print3(Diags_ENTRY,
"--> %s: (argc: %d, argv: 0x%x)", (IArg)FXNN, (IArg)argc, (IArg)argv);
/* must initialize the error block before using it */
Error_init(&eb);
/* initialize ipc layer */
Ipc_start();
/* create main thread (interrupts not enabled in main on BIOS) */
Task_Params_init(&taskParams);
taskParams.instance->name = "AppMain_main__P";
taskParams.arg0 = (UArg)argc;
taskParams.arg1 = (UArg)argv;
taskParams.stackSize = 0x4000;
Task_create(AppMain_main__P, &taskParams, &eb);
if (Error_check(&eb)) {
System_abort("main() failed to create application startup thread");
}
/* start scheduler, this never returns */
BIOS_start();
/* should never get here */
Log_print1(Diags_EXIT, "<-- %s: should never get here", (IArg)FXNN);
return(0);
}
开发者ID:andreimironenko,项目名称:framework_components,代码行数:34,代码来源:main_BIOS.c
示例15: VIDDEC1_create
/*
* ======== VIDDEC1_create ========
*/
VIDDEC1_Handle VIDDEC1_create(Engine_Handle engine, String name,
VIDDEC1_Params *params)
{
Registry_Result result;
VIDDEC1_Handle visa;
/* TODO:M Race here! Do we need ATM_Increment in our OSAL? */
if (regInit == 0) {
/* Register this module for logging */
result = Registry_addModule(&ti_sdo_ce_video1_viddec1_desc, MODNAME);
Assert_isTrue(result == Registry_SUCCESS, (Assert_Id)NULL);
if (result == Registry_SUCCESS) {
/* Set the diags mask to the CE default */
CESettings_init();
CESettings_setDiags(MODNAME);
}
regInit = 1;
}
Log_print3(Diags_ENTRY, "[+E] VIDDEC1_create> "
"Enter (engine=0x%x, name='%s', params=0x%x)",
(IArg)engine, (IArg)name, (IArg)params);
visa = VISA_create(engine, name, (IALG_Params *)params,
sizeof (_VIDDEC1_Msg), VIDDEC1_VISATYPE);
Log_print1(Diags_EXIT, "[+X] VIDDEC1_create> return (0x%x)", (IArg)visa);
return (visa);
}
开发者ID:mobiaqua,项目名称:ti-ce,代码行数:34,代码来源:viddec1.c
示例16: SystemCfg_notifyCB__P
Void SystemCfg_notifyCB__P(UInt16 procId, UInt16 lineId, UInt32 eventNum,
UArg arg, UInt32 payload)
{
Error_Block eb;
struct SystemCfg *stateObj = (struct SystemCfg *)arg;
Log_print4(Diags_ENTRY,
"--> %s: (prodId: %d, eventNum: %d, payload: 0x%x)",
(IArg)FXNN, (IArg)procId, (IArg)eventNum, (IArg)payload);
Error_init(&eb);
switch (Global_EvtMask & payload) {
case Global_EvtCreateDone:
case Global_EvtReady:
case Global_EvtCloseDone:
case Global_EvtDone:
SemThread_post(stateObj->semH, &eb);
if (Error_check(&eb)) {
/* Log_error() */
Log_print3(
Diags_USER8,
"Error: %s, line %d: %s: SemThread_post() returned error",
(IArg)__FILE__, (IArg)__LINE__, (IArg)FXNN);
}
break;
}
Log_print1(Diags_EXIT, "<-- %s:", (IArg)FXNN);
}
开发者ID:andreimironenko,项目名称:framework_components,代码行数:34,代码来源:SystemCfg_m3Video.c
示例17: SystemCfg_deleteResources
Int SystemCfg_deleteResources(SystemCfg_Object *obj)
{
Int status = 0;
Log_print1(Diags_ENTRY | Diags_INFO, "--> "FXNN": (obj=0x%x)",(IArg)obj);
/* unregister rcm message heap with MessageQ */
MessageQ_unregisterHeap(SystemCfg_RcmMsgHeapId_CompDev);
/* delete rcm message heap instance */
HeapBufMP_delete(&obj->rcmHeapH);
Log_print1(Diags_EXIT, "<-- "FXNN": %d", (IArg)status);
return(status);
}
开发者ID:andreimironenko,项目名称:framework_components,代码行数:16,代码来源:SystemCfg_host_bios.c
示例18: RcmClient_execCmd
Int RcmClient_execCmd(RcmClient_Object *obj, RcmClient_Message *msg)
{
RcmClient_Packet *packet;
MessageQ_Msg msgqMsg;
Int rval;
Int status = RcmClient_S_SUCCESS;
Log_print2(Diags_ENTRY | Diags_INFO,
"--> "FXNN": (obj=0x%x, msg=0x%x)", (IArg)obj, (IArg)msg);
/* classify this message */
packet = RcmClient_getPacketAddr_P(msg);
packet->desc |= RcmClient_Desc_CMD << RcmClient_Desc_TYPE_SHIFT;
/* set the return address to the error message queue */
msgqMsg = (MessageQ_Msg)packet;
MessageQ_setReplyQueue(obj->errorMsgQue, msgqMsg);
/* send the message to the server */
rval = MessageQ_put((MessageQ_QueueId)obj->serverMsgQ, msgqMsg);
if (rval < 0) {
Log_error0(FXNN": unable to send message to server");
status = RcmClient_E_IPCERROR;
}
Log_print1(Diags_EXIT | Diags_INFO, "<-- "FXNN": %d", (IArg)status);
return(status);
}
开发者ID:GAnthony,项目名称:sysbios-rpmsg,代码行数:30,代码来源:RcmClient.c
示例19: smain
Void smain (UArg arg0, UArg arg1)
{
int status = 0;
Log_print0(Diags_ENTRY | Diags_INFO, "--> smain:");
/* turn on Diags_INFO trace */
Diags_setMask("Server+F");
status = NameServerApp_startup();
if (status < 0) {
goto leave;
}
status = NameServerApp_execute();
if (status < 0) {
goto leave;
}
status = NameServerApp_shutdown();
if (status < 0) {
goto leave;
}
leave:
Log_print1(Diags_EXIT, "<-- smain: %d", (IArg)status);
return;
}
开发者ID:liyaoshi,项目名称:ipcdev,代码行数:28,代码来源:NameServerApp.c
示例20: NODE_delete
/*
* ======== NODE_delete ========
*/
Int NODE_delete(NODE_Handle node)
{
Void *handle;
/* Should be a DBC_requires */
Assert_isTrue(node != NULL, (Assert_Id)NULL);
Assert_isTrue(node->skelFxns != NULL, (Assert_Id)NULL);
Assert_isTrue(node->skelFxns->apiDestroy != NULL, (Assert_Id)NULL);
/* delete thread *before* destroying node to ensure thread has no access
* to node as we are freeing it
*/
if (node->self) {
Log_print1(Diags_ENTRY, "[+E] NODE_delete(0x%x)", (IArg)node);
Thread_delete(&(node->self));
}
handle = NODE_getEnv(node);
if (handle) {
node->skelFxns->apiDestroy(handle);
}
if (node->recv != Comm_INVALIDHANDLE) {
Comm_delete(node->recv);
}
Memory_free(NULL, node, sizeof(NODE_Obj));
return (NODE_EOK);
}
开发者ID:andreimironenko,项目名称:codec-engine,代码行数:35,代码来源:node_dele.c
注:本文中的Log_print1函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论