mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 14:38:58 +00:00
log: Add a category for filesystems
Sometimes it is useful to log things related to filesystems. Add a new category and place it at the top of one of the FAT files. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
3574eb8229
commit
4f6daaca0f
3 changed files with 5 additions and 0 deletions
|
@ -30,6 +30,7 @@ static const char *const log_cat_name[] = {
|
|||
"acpi",
|
||||
"boot",
|
||||
"event",
|
||||
"fs",
|
||||
};
|
||||
|
||||
_Static_assert(ARRAY_SIZE(log_cat_name) == LOGC_COUNT - LOGC_NONE,
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
* R/W (V)FAT 12/16/32 filesystem implementation by Donggeun Kim
|
||||
*/
|
||||
|
||||
#define LOG_CATEGORY LOGC_FS
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <config.h>
|
||||
|
|
|
@ -100,6 +100,8 @@ enum log_category_t {
|
|||
LOGC_BOOT,
|
||||
/** @LOGC_EVENT: Related to event and event handling */
|
||||
LOGC_EVENT,
|
||||
/** @LOGC_FS: Related to filesystems */
|
||||
LOGC_FS,
|
||||
/** @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