Purpose
This function will log the supplied trace data to the currently active
trace file. The product and component ID's set in the entry will be written
along with the date and time of the when the data was logged.
Syntax
unsigned int CWB_ENTRY cwbSV_LogTraceData(
cwbSV_TraceDataHandle traceDataHandle,
char *traceData,
unsigned long traceDataLength);
Parameters
- cwbSV_TraceDataHandle traceDataHandle - input
- Handle that was returned by a previous call to cwbSV_CreateTraceDataHandle().
- char * traceData - input
- Points to a buffer that contains the trace data you want to log. The
buffer can contain binary data because the length parameter is used in determining
the amount to trace.
- unsigned long traceDataLength - input
- Specifies the number of bytes in the trace data buffer to log for this
trace entry.
Return Codes
The following list shows common return values.
- CWB_OK
- Successful completion.
- CWB_INVALID_HANDLE
- Handle is not valid.