* [PATCH 1/1] ArmPlatformPkg: Comment out overly verbose DEBUG lines in LcdGraphicsBlt
@ 2022-05-03 19:31 Rebecca Cran
2022-05-03 19:43 ` [edk2-devel] " Ard Biesheuvel
0 siblings, 1 reply; 3+ messages in thread
From: Rebecca Cran @ 2022-05-03 19:31 UTC (permalink / raw)
To: devel, Leif Lindholm, Ard Biesheuvel; +Cc: Rebecca Cran
The DEBUG output in LcdGraphicsBlt is overly verbose, and makes using
the console difficult, for example when using the UiApp.
To allow for easy inclusion for future debugging, comment out but don't
remove the DEBUG lines.
Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
---
...utBlt.c | 22 +++---
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputBlt.c b/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputBlt.c
index 01ec6f68bd93..4766d72cef28 100644
--- a/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputBlt.c
+++ b/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputBlt.c
@@ -815,17 +815,17 @@ LcdGraphicsBlt (
HorizontalResolution = This->Mode->Info->HorizontalResolution;
VerticalResolution = This->Mode->Info->VerticalResolution;
- DEBUG ((
- DEBUG_INFO,
- "LcdGraphicsBlt (BltOperation:%d,DestX:%d,DestY:%d,Width:%d,Height:%d) res(%d,%d)\n",
- BltOperation,
- DestinationX,
- DestinationY,
- Width,
- Height,
- HorizontalResolution,
- VerticalResolution
- ));
+// DEBUG ((
+// DEBUG_INFO,
+// "LcdGraphicsBlt (BltOperation:%d,DestX:%d,DestY:%d,Width:%d,Height:%d) res(%d,%d)\n",
+// BltOperation,
+// DestinationX,
+// DestinationY,
+// Width,
+// Height,
+// HorizontalResolution,
+// VerticalResolution
+// ));
// Check we have reasonable parameters
if ((Width == 0) || (Height == 0)) {
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [edk2-devel] [PATCH 1/1] ArmPlatformPkg: Comment out overly verbose DEBUG lines in LcdGraphicsBlt
2022-05-03 19:31 [PATCH 1/1] ArmPlatformPkg: Comment out overly verbose DEBUG lines in LcdGraphicsBlt Rebecca Cran
@ 2022-05-03 19:43 ` Ard Biesheuvel
2022-05-03 20:08 ` Rebecca Cran
0 siblings, 1 reply; 3+ messages in thread
From: Ard Biesheuvel @ 2022-05-03 19:43 UTC (permalink / raw)
To: edk2-devel-groups-io, Rebecca Cran; +Cc: Leif Lindholm, Ard Biesheuvel
Hi Rebecca,
On Tue, 3 May 2022 at 21:31, Rebecca Cran <rebecca@bsdio.com> wrote:
>
> The DEBUG output in LcdGraphicsBlt is overly verbose, and makes using
> the console difficult, for example when using the UiApp.
>
> To allow for easy inclusion for future debugging, comment out but don't
> remove the DEBUG lines.
>
I'd suggest to either demote the debug level to DEBUG_VERBOSE, or
simply remove them, instead of using comments like this.
> Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
> ---
> ...utBlt.c | 22 +++---
> 1 file changed, 11 insertions(+), 11 deletions(-)
>
> diff --git a/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputBlt.c b/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputBlt.c
> index 01ec6f68bd93..4766d72cef28 100644
> --- a/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputBlt.c
> +++ b/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputBlt.c
> @@ -815,17 +815,17 @@ LcdGraphicsBlt (
> HorizontalResolution = This->Mode->Info->HorizontalResolution;
> VerticalResolution = This->Mode->Info->VerticalResolution;
>
> - DEBUG ((
> - DEBUG_INFO,
> - "LcdGraphicsBlt (BltOperation:%d,DestX:%d,DestY:%d,Width:%d,Height:%d) res(%d,%d)\n",
> - BltOperation,
> - DestinationX,
> - DestinationY,
> - Width,
> - Height,
> - HorizontalResolution,
> - VerticalResolution
> - ));
> +// DEBUG ((
> +// DEBUG_INFO,
> +// "LcdGraphicsBlt (BltOperation:%d,DestX:%d,DestY:%d,Width:%d,Height:%d) res(%d,%d)\n",
> +// BltOperation,
> +// DestinationX,
> +// DestinationY,
> +// Width,
> +// Height,
> +// HorizontalResolution,
> +// VerticalResolution
> +// ));
>
> // Check we have reasonable parameters
> if ((Width == 0) || (Height == 0)) {
> --
> 2.25.1
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [edk2-devel] [PATCH 1/1] ArmPlatformPkg: Comment out overly verbose DEBUG lines in LcdGraphicsBlt
2022-05-03 19:43 ` [edk2-devel] " Ard Biesheuvel
@ 2022-05-03 20:08 ` Rebecca Cran
0 siblings, 0 replies; 3+ messages in thread
From: Rebecca Cran @ 2022-05-03 20:08 UTC (permalink / raw)
To: Ard Biesheuvel, edk2-devel-groups-io; +Cc: Leif Lindholm, Ard Biesheuvel
I think with the PL111 being such old technology now it should be safe
to just remove them.
--
Rebecca Cran
On 5/3/22 13:43, Ard Biesheuvel wrote:
> Hi Rebecca,
>
> On Tue, 3 May 2022 at 21:31, Rebecca Cran <rebecca@bsdio.com> wrote:
>> The DEBUG output in LcdGraphicsBlt is overly verbose, and makes using
>> the console difficult, for example when using the UiApp.
>>
>> To allow for easy inclusion for future debugging, comment out but don't
>> remove the DEBUG lines.
>>
> I'd suggest to either demote the debug level to DEBUG_VERBOSE, or
> simply remove them, instead of using comments like this.
>
>> Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
>> ---
>> ...utBlt.c | 22 +++---
>> 1 file changed, 11 insertions(+), 11 deletions(-)
>>
>> diff --git a/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputBlt.c b/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputBlt.c
>> index 01ec6f68bd93..4766d72cef28 100644
>> --- a/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputBlt.c
>> +++ b/ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputBlt.c
>> @@ -815,17 +815,17 @@ LcdGraphicsBlt (
>> HorizontalResolution = This->Mode->Info->HorizontalResolution;
>> VerticalResolution = This->Mode->Info->VerticalResolution;
>>
>> - DEBUG ((
>> - DEBUG_INFO,
>> - "LcdGraphicsBlt (BltOperation:%d,DestX:%d,DestY:%d,Width:%d,Height:%d) res(%d,%d)\n",
>> - BltOperation,
>> - DestinationX,
>> - DestinationY,
>> - Width,
>> - Height,
>> - HorizontalResolution,
>> - VerticalResolution
>> - ));
>> +// DEBUG ((
>> +// DEBUG_INFO,
>> +// "LcdGraphicsBlt (BltOperation:%d,DestX:%d,DestY:%d,Width:%d,Height:%d) res(%d,%d)\n",
>> +// BltOperation,
>> +// DestinationX,
>> +// DestinationY,
>> +// Width,
>> +// Height,
>> +// HorizontalResolution,
>> +// VerticalResolution
>> +// ));
>>
>> // Check we have reasonable parameters
>> if ((Width == 0) || (Height == 0)) {
>> --
>> 2.25.1
>>
>>
>>
>>
>>
>>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-05-03 20:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-03 19:31 [PATCH 1/1] ArmPlatformPkg: Comment out overly verbose DEBUG lines in LcdGraphicsBlt Rebecca Cran
2022-05-03 19:43 ` [edk2-devel] " Ard Biesheuvel
2022-05-03 20:08 ` Rebecca Cran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox