]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
stm32mp: stm32prog: improve the partitioning trace
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 9 Sep 2022 15:22:15 +0000 (17:22 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 23 Sep 2022 12:25:29 +0000 (14:25 +0200)
Improve the partitioning trace done in command stm32prog:
- remove the trace "partition: Done" when the GPT partitioning is not done
- indicate the mmc instance used for each 'gpt write' command

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c

index c03ad8526dbf66452e057c3ffebcdd9bddd7eddf..89552d2ad10beba21389b5ee34d224e6e1fba261 100644 (file)
@@ -1090,7 +1090,6 @@ static int create_gpt_partitions(struct stm32prog_data *data)
        if (!buf)
                return -ENOMEM;
 
-       puts("partitions : ");
        /* initialize the selected device */
        for (i = 0; i < data->dev_nb; i++) {
                /* create gpt partition support only for full update on MMC */
@@ -1098,6 +1097,7 @@ static int create_gpt_partitions(struct stm32prog_data *data)
                    !data->dev[i].full_update)
                        continue;
 
+               printf("partitions on mmc%d: ", data->dev[i].dev_id);
                offset = 0;
                rootfs_found = false;
                memset(buf, 0, buflen);
@@ -1197,8 +1197,8 @@ static int create_gpt_partitions(struct stm32prog_data *data)
                sprintf(buf, "part list mmc %d", data->dev[i].dev_id);
                run_command(buf, 0);
 #endif
+               puts("done\n");
        }
-       puts("done\n");
 
 #ifdef DEBUG
        run_command("mtd list", 0);