[U-Boot] [PATCH v6 21/31] mtd: mtdpart: balance debug messages

Miquel Raynal miquel.raynal at bootlin.com
Thu Aug 16 15:30:19 UTC 2018


Balance debug message in the partition allocation/removal process in
order to keep track of them more easily.

Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>
---
 drivers/mtd/mtdpart.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c
index ccbb1757ea..9ccb1b3361 100644
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -362,6 +362,8 @@ int del_mtd_partitions(struct mtd_info *master)
 	struct mtd_part *slave, *next;
 	int ret, err = 0;
 
+	debug("Deleting MTD partitions on \"%s\":\n", master->name);
+
 	mutex_lock(&mtd_partitions_mutex);
 	list_for_each_entry_safe(slave, next, &mtd_partitions, list)
 		if (slave->master == master) {
-- 
2.17.1



More information about the U-Boot mailing list