Good patch.

Another choice is to use DEBUG_VERBOSE.
We see other driver uses DEBUG_VERBOSE for BlockIo service (Hao can comment on 
that).
We'd better to align them for consistency.


Thanks,
Star
-----Original Message-----
From: Laszlo Ersek [mailto:ler...@redhat.com] 
Sent: Friday, June 8, 2018 1:23 AM
To: Ard Biesheuvel <ard.biesheu...@linaro.org>; edk2-devel@lists.01.org
Cc: Zeng, Star <star.z...@intel.com>
Subject: Re: [edk2] [PATCH] MdeModulePkg/EmmcDxe: demote DEBUG print to 
DEBUG_BLKIO

On 06/07/18 11:10, Ard Biesheuvel wrote:
> Lower the priority of the DEBUG print in EmmcReadWrite(), which is 
> emitted for each read or write operation to the eMMC device, which 
> clutters up the log output of builds created with DEBUG_INFO enabled.
> 
> Suggested-by: Pipat Methavanitpong 
> <methavanitpong.pi...@socionext.com>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Ard Biesheuvel <ard.biesheu...@linaro.org>
> ---
>  MdeModulePkg/Bus/Sd/EmmcDxe/EmmcBlockIo.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/MdeModulePkg/Bus/Sd/EmmcDxe/EmmcBlockIo.c 
> b/MdeModulePkg/Bus/Sd/EmmcDxe/EmmcBlockIo.c
> index e1d0f394a954..f6b230514b71 100644
> --- a/MdeModulePkg/Bus/Sd/EmmcDxe/EmmcBlockIo.c
> +++ b/MdeModulePkg/Bus/Sd/EmmcDxe/EmmcBlockIo.c
> @@ -901,7 +901,10 @@ EmmcReadWrite (
>      if (EFI_ERROR (Status)) {
>        return Status;
>      }
> -    DEBUG ((EFI_D_INFO, "Emmc%a(): Part %d Lba 0x%x BlkNo 0x%x Event %p with 
> %r\n", IsRead ? "Read " : "Write", Partition->PartitionType, Lba, BlockNum, 
> (Token != NULL) ? Token->Event : NULL, Status));
> +    DEBUG ((DEBUG_BLKIO,
> +      "Emmc%a(): Part %d Lba 0x%x BlkNo 0x%x Event %p with %r\n",
> +      IsRead ? "Read " : "Write", Partition->PartitionType, Lba, BlockNum,
> +      (Token != NULL) ? Token->Event : NULL, Status));
>  
>      Lba   += BlockNum;
>      Buffer = (UINT8*)Buffer + BufferSize;
> 

Reviewed-by: Laszlo Ersek <ler...@redhat.com>
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to