C \n test

C code posted by return
created at 02 May 21:51, updated at 03 May 07:27

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
void vCbiLogReport(const U16 usFileNo, const S32 lLineNo,
    const U16 usLogId, const U32 ulParam1, const U32 ulParam2)
{
    CBI_LOG_MSG_BODY stLog = {0U};      /** The log message body. */

    CBI_LOG_TRACE(usFileNo, lLineNo, usLogId, ulParam1, ulParam2);

    stLog.usFile = usFileNo;
    stLog.ulLine = (U32)lLineNo;
    stLog.usLogID = usLogId;
    stLog.ulPara1 = ulParam1;
    stLog.ulPara2 = ulParam2;
    vCbiGetSysTime(&(stLog.tRptTime));
#ifdef WIN32
    assert(usLogId != LID_STATIC_DATA_ERROR);
    assert(usLogId != LID_DYNAMIC_DATA_ERROR);
    assert(usLogId != LID_PARAMETERS_ERROR);
#endif
    vCbiEventPushQ(LOG_QUEUE, &stLog, sizeof(stLog));

    return;
}
698 Bytes in 2 ms with coderay