Sfoglia il codice sorgente

mtd: mtdpart: balance debug messages

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@bootlin.com>
Miquel Raynal 6 anni fa
parent
commit
b0036f7004
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      drivers/mtd/mtdpart.c

+ 2 - 0
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) {