#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include "log/tfm_log_raw.h"
#include "common/uart_stdout.h"
Go to the source code of this file.
#define PRINT_BUFF_SIZE 32 |
int tfm_log_printf |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Prints log messages.
- Parameters
-
[in] | fmt | Formatted 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.
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.