summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@foss.st.com>2021-04-27 12:02:19 +0300
committerSimon Glass <sjg@chromium.org>2021-07-06 19:38:03 +0300
commitb953ec2bca1ebe059366e870eb4bec5e7af9c36b (patch)
tree7068f05d7cbf19465df4a6c87b29a3599c5de654 /drivers/mtd
parent85f718f64d65390f385111e57cfa017abd12879d (diff)
downloadu-boot-b953ec2bca1ebe059366e870eb4bec5e7af9c36b.tar.xz
dm: define LOG_CATEGORY for all uclass
Define LOG_CATEGORY for all uclass to allow filtering with log command. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/mtd-uclass.c2
-rw-r--r--drivers/mtd/spi/sf-uclass.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mtd/mtd-uclass.c b/drivers/mtd/mtd-uclass.c
index 4ab84de553..0743fe7af9 100644
--- a/drivers/mtd/mtd-uclass.c
+++ b/drivers/mtd/mtd-uclass.c
@@ -3,6 +3,8 @@
* Copyright (C) 2015 Thomas Chou <thomas@wytron.com.tw>
*/
+#define LOG_CATEGORY UCLASS_MTD
+
#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
diff --git a/drivers/mtd/spi/sf-uclass.c b/drivers/mtd/spi/sf-uclass.c
index cfce00ef54..63d16291ff 100644
--- a/drivers/mtd/spi/sf-uclass.c
+++ b/drivers/mtd/spi/sf-uclass.c
@@ -3,6 +3,8 @@
* Copyright (c) 2014 Google, Inc
*/
+#define LOG_CATEGORY UCLASS_SPI_FLASH
+
#include <common.h>
#include <dm.h>
#include <log.h>