TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tfm_spm_log.h File Reference
#include <stddef.h>
#include <stdint.h>
#include "tfm_hal_defs.h"
#include "tfm_hal_spm_logdev.h"
Include dependency graph for tfm_spm_log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TFM_SPM_LOG_LEVEL_DEBUG   3 /* All log APIs output */
 
#define TFM_SPM_LOG_LEVEL_INFO
 
#define TFM_SPM_LOG_LEVEL_ERROR
 
#define TFM_SPM_LOG_LEVEL_SILENCE   0 /* All log APIs are suppressed */
 
#define SPMLOG_DBGMSGVAL(msg, val)
 
#define SPMLOG_DBGMSG(msg)
 
#define SPMLOG_INFMSGVAL(msg, val)
 
#define SPMLOG_INFMSG(msg)
 
#define SPMLOG_ERRMSGVAL(msg, val)
 
#define SPMLOG_ERRMSG(msg)
 

Functions

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...
 

Macro Definition Documentation

#define SPMLOG_DBGMSG (   msg)

Definition at line 42 of file tfm_spm_log.h.

#define SPMLOG_DBGMSGVAL (   msg,
  val 
)

Definition at line 41 of file tfm_spm_log.h.

#define SPMLOG_ERRMSG (   msg)

Definition at line 58 of file tfm_spm_log.h.

#define SPMLOG_ERRMSGVAL (   msg,
  val 
)

Definition at line 57 of file tfm_spm_log.h.

#define SPMLOG_INFMSG (   msg)

Definition at line 50 of file tfm_spm_log.h.

#define SPMLOG_INFMSGVAL (   msg,
  val 
)

Definition at line 49 of file tfm_spm_log.h.

#define TFM_SPM_LOG_LEVEL_DEBUG   3 /* All log APIs output */

Definition at line 17 of file tfm_spm_log.h.

#define TFM_SPM_LOG_LEVEL_ERROR
Value:
1 /*
* Only SPMLOG_ERRMSG and SPMLOG_ERRMSGVAL
* APIs output.
*/

Definition at line 22 of file tfm_spm_log.h.

#define TFM_SPM_LOG_LEVEL_INFO
Value:
2 /*
* All log APIs output except SPMLOG_DBG
* and SPMLOG_DBGMSGVAL
*/

Definition at line 18 of file tfm_spm_log.h.

#define TFM_SPM_LOG_LEVEL_SILENCE   0 /* All log APIs are suppressed */

Definition at line 26 of file tfm_spm_log.h.

Function Documentation

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]msgA string message
[in]lenThe length of the message
[in]valueA value need to be output
Return values
>=0Number of chars output.
<0TFM HAL error code.

Definition at line 36 of file spm_log.c.