File log.h¶
FileList > docs > sw > include > opae > log.h
Go to the source code of this file.
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <opae/types.h>
Public Types¶
Type | Name |
---|---|
enum | opae_loglevel |
Public Functions¶
Type | Name |
---|---|
void | opae_print (int loglevel, const char * fmt, ...) |
Macros¶
Type | Name |
---|---|
define | OPAE_DBG (format, ...) { } |
define | OPAE_DEFAULT_LOGLEVEL OPAE_LOG_ERROR |
define | OPAE_ERR (format, ...) |
define | OPAE_MSG (format, ...) |
define | __SHORT_FILE__ |
Public Types Documentation¶
enum opae_loglevel¶
Public Functions Documentation¶
function opae_print¶
Macro Definition Documentation¶
define OPAE_DBG¶
define OPAE_DEFAULT_LOGLEVEL¶
define OPAE_ERR¶
#define OPAE_ERR (
format,
...
) opae_print ( OPAE_LOG_ERROR , \
"%s:%u:%s() **ERROR** : " format "\n", \
__SHORT_FILE__, __LINE__, __func__, ##__VA_ARGS__)
define OPAE_MSG¶
#define OPAE_MSG (
format,
...
) opae_print ( OPAE_LOG_MESSAGE , "%s:%u:%s() : " format "\n", \
__SHORT_FILE__, __LINE__, __func__, ##__VA_ARGS__)
define __SHORT_FILE__¶
#define __SHORT_FILE__ ({ \
const char *file = __FILE__; \
const char *p = file; \
while (*p) \
++p; \
while ((p > file) && ('/' != *p) && ('\\' != *p)) \
--p; \
if (p > file) \
++p; \
p; \
})
The documentation for this class was generated from the following file docs/sw/include/opae/log.h