mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 18:04:48 +00:00
bootstd: Add a separate log category for expo
This feature is different enough from bootstd that it probably deserves its own log category. It cannot use a uclass since it is not a device. Add a new category. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
a8f2ac2ae6
commit
c98cb51252
5 changed files with 8 additions and 1 deletions
|
@ -6,6 +6,8 @@
|
|||
* Written by Simon Glass <sjg@chromium.org>
|
||||
*/
|
||||
|
||||
#define LOG_CATEGORY LOGC_EXPO
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <expo.h>
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
* Written by Simon Glass <sjg@chromium.org>
|
||||
*/
|
||||
|
||||
#define LOG_CATEGORY LOGC_EXPO
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <expo.h>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Written by Simon Glass <sjg@chromium.org>
|
||||
*/
|
||||
|
||||
#define LOG_CATEGORY LOGC_BOOT
|
||||
#define LOG_CATEGORY LOGC_EXPO
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
|
|
|
@ -31,6 +31,7 @@ static const char *const log_cat_name[] = {
|
|||
"boot",
|
||||
"event",
|
||||
"fs",
|
||||
"expo",
|
||||
};
|
||||
|
||||
_Static_assert(ARRAY_SIZE(log_cat_name) == LOGC_COUNT - LOGC_NONE,
|
||||
|
|
|
@ -102,6 +102,8 @@ enum log_category_t {
|
|||
LOGC_EVENT,
|
||||
/** @LOGC_FS: Related to filesystems */
|
||||
LOGC_FS,
|
||||
/** @LOGC_EXPO: Related to expo handling */
|
||||
LOGC_EXPO,
|
||||
/** @LOGC_COUNT: Number of log categories */
|
||||
LOGC_COUNT,
|
||||
/** @LOGC_END: Sentinel value for lists of log categories */
|
||||
|
|
Loading…
Add table
Reference in a new issue