skip to main content
General Support API : Trace Function : tm_dumpHex
 

tm_dumpHex

This function displays the input data buffer in hexadecimal digits to the trace file.
void tm_dumpHex(
     TM_ModuleCB mod,
     TM_Mask mask,
     char * str,
     void * data,
     Sint16 length)
For example, to dump the value of sDatasourceName, you can call:
OAWCHAR *sDatasourceName;
tm_dumpHex(mem_tm_Handle, UL_TM_INFO, "DataSourceName",
    sDatasourceName, oawcslen(sDatasourceName)*sizeof(OAWCHAR));
This results in a log file showing

SQLDRV : c:\program files\datadirect\oaserver810\ip\oac\memory\src\mem_drv.c:820 DataSourceName
0: 6d 00 65 00 6d 00 6f 00 72 00 79 00 | m.e.m.o.r.y.
Table 236. Parameters for tm_dumpHex
Parameter
Type
Description
IN
mod
TM_ModuleCB
mask
TM_Mask
A mask defined by the combination of using one or more of the masks listed Table 235.
char
str *
A prefix to identify the hex data
data
void *
A pointer to data whose data needs to be dumped as hexadecimal digits
length
Sint16
The length of data to be dumped.
RETURN
int
Function call status:
DAM_SUCCESS - values set
DAM_FAILURE - values not set. One of the values was null when it cannot be.