TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tfm_log_raw.c File Reference
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include "log/tfm_log_raw.h"
#include "common/uart_stdout.h"
Include dependency graph for tfm_log_raw.c:

Go to the source code of this file.

Data Structures

struct  formatted_buffer_t
 

Macros

#define PRINT_BUFF_SIZE   32
 
#define NUM_BUFF_SIZE   12
 

Functions

int tfm_log_printf (const char *fmt,...)
 Prints log messages. More...
 

Variables

const char hex_digits_lo []
 
const char hex_digits_up []
 

Macro Definition Documentation

#define NUM_BUFF_SIZE   12

Definition at line 15 of file tfm_log_raw.c.

#define PRINT_BUFF_SIZE   32

Definition at line 14 of file tfm_log_raw.c.

Function Documentation

int tfm_log_printf ( const char *  fmt,
  ... 
)

Prints log messages.

Parameters
[in]fmtFormatted string
[in]...Viriable length argument
Returns
Number of chars printed
Note
This function has the similar input argument format as the 'printf' function. But it supports only some basic formats like 'sdicpuxX' and ''. It will output "[Unsupported Tag]" when none of the above formats match

The following output formats are supported. s - string d - decimal signed integer (same for i) u - decimal unsigned integer x - hex in lowercase X - hex in uppercase p - hex address of a pointer in lowercase c - character %% - the '' symbol

Definition at line 161 of file tfm_log_raw.c.

Variable Documentation

const char hex_digits_lo[]
Initial value:
= {'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}

Definition at line 22 of file tfm_log_raw.c.

const char hex_digits_up[]
Initial value:
= {'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F'}

Definition at line 24 of file tfm_log_raw.c.