1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (c) 2014, STMicroelectronics International N.V.
4  */
5 #ifndef TRACE_LEVELS_H
6 #define TRACE_LEVELS_H
7 
8 /*
9  * Trace levels.
10  *
11  * ALWAYS is used when you always want a print to be seen, but it is not always
12  * an error.
13  *
14  * ERROR is used when some kind of error has happened, this is most likely the
15  * print you will use most of the time when you report some kind of error.
16  *
17  * INFO is used when you want to print some 'normal' text to the user.
18  * This is the default level.
19  *
20  * DEBUG is used to print extra information to enter deeply in the module.
21  *
22  * FLOW is used to print the execution flox, typically the in/out of functions.
23  *
24  */
25 
26 #define TRACE_MIN       0
27 #define TRACE_ERROR     1
28 #define TRACE_INFO      2
29 #define TRACE_DEBUG     3
30 #define TRACE_FLOW      4
31 #define TRACE_MAX       TRACE_FLOW
32 
33 /* Trace level of the casual printf */
34 #define TRACE_PRINTF_LEVEL TRACE_ERROR
35 
36 #endif /*TRACE_LEVELS_H*/
37