log: Add an implementation of logging

Add the logging header file and implementation with some configuration
options to control it.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass authored and Tom Rini committed 2017-12-07 15:17:00 -05:00
1 parent c5404b64fb
commit e9c8d49d54
6 files changed
+555

No files matched your search

+5
View File
@@ -114,6 +114,11 @@ typedef struct global_data {
struct bootstage_data *bootstage; /* Bootstage information */
struct bootstage_data *new_bootstage; /* Relocated bootstage info */
#endif
#ifdef CONFIG_LOG
int log_drop_count; /* Number of dropped log messages */
int default_log_level; /* For devices with no filters */
struct list_head log_head; /* List of struct log_device */
#endif
} gd_t;
#endif