aboutsummaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorPatrick Delaunay2021-04-27 11:02:19 +0200
committerSimon Glass2021-07-06 10:38:03 -0600
commitb953ec2bca1ebe059366e870eb4bec5e7af9c36b (patch)
tree7068f05d7cbf19465df4a6c87b29a3599c5de654 /drivers/block
parent85f718f64d65390f385111e57cfa017abd12879d (diff)
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/block')
-rw-r--r--drivers/block/blk-uclass.c2
-rw-r--r--drivers/block/ide.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c
index d0d91db540b..dfc0d469702 100644
--- a/drivers/block/blk-uclass.c
+++ b/drivers/block/blk-uclass.c
@@ -4,6 +4,8 @@
* Written by Simon Glass <sjg@chromium.org>
*/
+#define LOG_CATEGORY UCLASS_BLK
+
#include <common.h>
#include <blk.h>
#include <dm.h>
diff --git a/drivers/block/ide.c b/drivers/block/ide.c
index 862a85bc87b..c99076c6f45 100644
--- a/drivers/block/ide.c
+++ b/drivers/block/ide.c
@@ -4,6 +4,8 @@
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
+#define LOG_CATEGORY UCLASS_IDE
+
#include <common.h>
#include <ata.h>
#include <blk.h>