#include <stddef.h>
#include <stdint.h>
#include "tfm_hal_defs.h"
#include "tfm_hal_spm_logdev.h"
Go to the source code of this file.
|
int32_t | spm_log_msgval (const char *msg, size_t len, uint32_t value) |
| SPM output API to convert digit number into HEX string and call the HAL API tfm_hal_output_spm_log. More...
|
|
#define SPMLOG_DBGMSG |
( |
|
msg | ) |
|
#define SPMLOG_DBGMSGVAL |
( |
|
msg, |
|
|
|
val |
|
) |
| |
#define SPMLOG_ERRMSG |
( |
|
msg | ) |
|
#define SPMLOG_ERRMSGVAL |
( |
|
msg, |
|
|
|
val |
|
) |
| |
#define SPMLOG_INFMSG |
( |
|
msg | ) |
|
#define SPMLOG_INFMSGVAL |
( |
|
msg, |
|
|
|
val |
|
) |
| |
#define TFM_SPM_LOG_LEVEL_DEBUG 3 /* All log APIs output */ |
#define TFM_SPM_LOG_LEVEL_ERROR |
#define TFM_SPM_LOG_LEVEL_INFO |
#define TFM_SPM_LOG_LEVEL_SILENCE 0 /* All log APIs are suppressed */ |
int32_t spm_log_msgval |
( |
const char * |
msg, |
|
|
size_t |
len, |
|
|
uint32_t |
value |
|
) |
| |
SPM output API to convert digit number into HEX string and call the HAL API tfm_hal_output_spm_log.
- Parameters
-
[in] | msg | A string message |
[in] | len | The length of the message |
[in] | value | A value need to be output |
- Return values
-
>=0 | Number of chars output. |
<0 | TFM HAL error code. |
Definition at line 36 of file spm_log.c.