Go to the documentation of this file.
40 #define OPGP_LOG_FILENAME _T("C:\\TEMP\\GlobalPlatform.log")
42 #define OPGP_LOG_FILENAME _T("/tmp/GlobalPlatform.log")
46 #define OPGP_LOG_START(msg) OPGP_log_Start(msg, _T(__FILE__), __LINE__)
47 #define OPGP_LOG_MSG(...) OPGP_log_Msg(__VA_ARGS__)
48 #define OPGP_LOG_END(msg, status) OPGP_log_End(msg, _T(__FILE__), __LINE__, status)
49 #define OPGP_LOG_HEX(msg, buffer, bufferLength) OPGP_log_Hex(msg, buffer, bufferLength)
51 #define OPGP_LOG_START(msg)
52 #define OPGP_LOG_END(msg,rv)
53 #define OPGP_LOG_HEX(msg, buffer, bufferLength)
54 #define OPGP_LOG_MSG(...)
unsigned char * PBYTE
A Microsoft/Muscle LPBYTE, pointer to unsigned char.
Definition: types.h:48
OPGP_API void OPGP_log_End(OPGP_STRING func, OPGP_STRING file, int line, OPGP_ERROR_STATUS status)
Logs the end of a function and its return code.
Definition: debug.c:85
unsigned long DWORD
A Microsoft/Muscle DWORD definition.
Definition: types.h:52
char * OPGP_STRING
A Microsoft/Muscle LPTSTR.
Definition: types.h:46
OPGP_API void OPGP_log_Msg(OPGP_STRING msg,...)
Logs something to a file or the syslog.
Definition: debug.c:100
OPGP_API void OPGP_log_Hex(OPGP_STRING msg, PBYTE buffer, DWORD bufferLength)
Logs a buffer as hex string.
Definition: debug.c:53
OPGP_API void OPGP_log_Start(OPGP_STRING func, OPGP_STRING file, int line)
Logs the start of a function.
Definition: debug.c:43