[PATCH 06/21] mmc: Drop the blank line before accesses

Tom Rini trini at konsulko.com
Thu Aug 15 19:01:08 CEST 2024


On Sat, Aug 10, 2024 at 02:51:50PM -0600, Simon Glass wrote:

> Several mmc subcommand print a blank line before starting and after
> finishing. It isn't necessary to do both, so drop the first one.
> 
> It is questionable whether these command should produce any output at
> all, but leave it for now.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
>  cmd/mmc.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/cmd/mmc.c b/cmd/mmc.c
> index 7244a90f4dc..ff7b8e555ba 100644
> --- a/cmd/mmc.c
> +++ b/cmd/mmc.c
> @@ -238,7 +238,7 @@ static int do_mmcrpmb_read(struct cmd_tbl *cmdtp, int flag,
>  	if (argc == 5)
>  		key_addr = (void *)hextoul(argv[4], NULL);
>  
> -	printf("\nMMC RPMB read: dev # %d, block # %d, count %d ... ",
> +	printf("MMC RPMB read: dev # %d, block # %d, count %d ... ",
>  	       curr_device, blk, cnt);
>  	n =  mmc_rpmb_read(mmc, addr, blk, cnt, key_addr);
>  
> @@ -265,7 +265,7 @@ static int do_mmcrpmb_write(struct cmd_tbl *cmdtp, int flag,
>  	cnt = hextoul(argv[3], NULL);
>  	key_addr = (void *)hextoul(argv[4], NULL);
>  
> -	printf("\nMMC RPMB write: dev # %d, block # %d, count %d ... ",
> +	printf("MMC RPMB write: dev # %d, block # %d, count %d ... ",
>  	       curr_device, blk, cnt);
>  	n =  mmc_rpmb_write(mmc, addr, blk, cnt, key_addr);
>  
> @@ -362,7 +362,7 @@ static int do_mmc_read(struct cmd_tbl *cmdtp, int flag,
>  	if (!mmc)
>  		return CMD_RET_FAILURE;
>  
> -	printf("\nMMC read: dev # %d, block # %d, count %d ... ",
> +	printf("MMC read: dev # %d, block # %d, count %d ... ",
>  	       curr_device, blk, cnt);
>  
>  	n = blk_dread(mmc_get_blk_desc(mmc), blk, cnt, addr);
> @@ -411,7 +411,7 @@ static int do_mmc_sparse_write(struct cmd_tbl *cmdtp, int flag,
>  	if (!mmc)
>  		return CMD_RET_FAILURE;
>  
> -	printf("\nMMC Sparse write: dev # %d, block # %d ... ",
> +	printf("MMC Sparse write: dev # %d, block # %d ... ",
>  	       curr_device, blk);
>  
>  	if (mmc_getwp(mmc) == 1) {
> @@ -455,7 +455,7 @@ static int do_mmc_write(struct cmd_tbl *cmdtp, int flag,
>  	if (!mmc)
>  		return CMD_RET_FAILURE;
>  
> -	printf("\nMMC write: dev # %d, block # %d, count %d ... ",
> +	printf("MMC write: dev # %d, block # %d, count %d ... ",
>  	       curr_device, blk, cnt);
>  
>  	if (mmc_getwp(mmc) == 1) {
> @@ -484,7 +484,7 @@ static int do_mmc_erase(struct cmd_tbl *cmdtp, int flag,
>  	if (!mmc)
>  		return CMD_RET_FAILURE;
>  
> -	printf("\nMMC erase: dev # %d, block # %d, count %d ... ",
> +	printf("MMC erase: dev # %d, block # %d, count %d ... ",
>  	       curr_device, blk, cnt);
>  
>  	if (mmc_getwp(mmc) == 1) {

Did you confirm things look right still, on hardware?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20240815/c6b475de/attachment.sig>


More information about the U-Boot mailing list