All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] efi_loader: Remove unnecessary debug
@ 2020-05-19 10:13 Pragnesh Patel
  2020-05-19 10:24 ` Heinrich Schuchardt
  0 siblings, 1 reply; 3+ messages in thread
From: Pragnesh Patel @ 2020-05-19 10:13 UTC (permalink / raw)
  To: u-boot

Remove unnecessary debug() from efi_set_variable_common().
native_name is NULL, so there is no meaning to print it.

Signed-off-by: Pragnesh Patel <pragnesh.patel@sifive.com>
---
 lib/efi_loader/efi_variable.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/efi_loader/efi_variable.c b/lib/efi_loader/efi_variable.c
index 10892684d1..9698efbc5d 100644
--- a/lib/efi_loader/efi_variable.c
+++ b/lib/efi_loader/efi_variable.c
@@ -883,8 +883,6 @@ static efi_status_t efi_set_variable_common(u16 *variable_name,
 	u32 attr;
 	efi_status_t ret = EFI_SUCCESS;
 
-	debug("%s: set '%s'\n", __func__, native_name);
-
 	if (!variable_name || !*variable_name || !vendor ||
 	    ((attributes & EFI_VARIABLE_RUNTIME_ACCESS) &&
 	     !(attributes & EFI_VARIABLE_BOOTSERVICE_ACCESS))) {
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] efi_loader: Remove unnecessary debug
  2020-05-19 10:13 [PATCH] efi_loader: Remove unnecessary debug Pragnesh Patel
@ 2020-05-19 10:24 ` Heinrich Schuchardt
  2020-05-21  0:13   ` AKASHI Takahiro
  0 siblings, 1 reply; 3+ messages in thread
From: Heinrich Schuchardt @ 2020-05-19 10:24 UTC (permalink / raw)
  To: u-boot

On 19.05.20 12:13, Pragnesh Patel wrote:
> Remove unnecessary debug() from efi_set_variable_common().
> native_name is NULL, so there is no meaning to print it.
>
> Signed-off-by: Pragnesh Patel <pragnesh.patel@sifive.com>

Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

> ---
>  lib/efi_loader/efi_variable.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/lib/efi_loader/efi_variable.c b/lib/efi_loader/efi_variable.c
> index 10892684d1..9698efbc5d 100644
> --- a/lib/efi_loader/efi_variable.c
> +++ b/lib/efi_loader/efi_variable.c
> @@ -883,8 +883,6 @@ static efi_status_t efi_set_variable_common(u16 *variable_name,
>  	u32 attr;
>  	efi_status_t ret = EFI_SUCCESS;
>
> -	debug("%s: set '%s'\n", __func__, native_name);
> -
>  	if (!variable_name || !*variable_name || !vendor ||
>  	    ((attributes & EFI_VARIABLE_RUNTIME_ACCESS) &&
>  	     !(attributes & EFI_VARIABLE_BOOTSERVICE_ACCESS))) {
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] efi_loader: Remove unnecessary debug
  2020-05-19 10:24 ` Heinrich Schuchardt
@ 2020-05-21  0:13   ` AKASHI Takahiro
  0 siblings, 0 replies; 3+ messages in thread
From: AKASHI Takahiro @ 2020-05-21  0:13 UTC (permalink / raw)
  To: u-boot

On Tue, May 19, 2020 at 12:24:27PM +0200, Heinrich Schuchardt wrote:
> On 19.05.20 12:13, Pragnesh Patel wrote:
> > Remove unnecessary debug() from efi_set_variable_common().
> > native_name is NULL, so there is no meaning to print it.
> >
> > Signed-off-by: Pragnesh Patel <pragnesh.patel@sifive.com>
> 
> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Nak

> >  lib/efi_loader/efi_variable.c | 2 --
> >  1 file changed, 2 deletions(-)
> >
> > diff --git a/lib/efi_loader/efi_variable.c b/lib/efi_loader/efi_variable.c
> > index 10892684d1..9698efbc5d 100644
> > --- a/lib/efi_loader/efi_variable.c
> > +++ b/lib/efi_loader/efi_variable.c
> > @@ -883,8 +883,6 @@ static efi_status_t efi_set_variable_common(u16 *variable_name,
> >  	u32 attr;
> >  	efi_status_t ret = EFI_SUCCESS;
> >
> > -	debug("%s: set '%s'\n", __func__, native_name);

Instead,
	debug("%s: set '%ls'\n", __func__, variable_name);

It would be helpful for tracing activities.
This function can be used outside of this file, particularly,
to handle READ_ONLY variables there.

-Takahiro Akashi

> > -
> >  	if (!variable_name || !*variable_name || !vendor ||
> >  	    ((attributes & EFI_VARIABLE_RUNTIME_ACCESS) &&
> >  	     !(attributes & EFI_VARIABLE_BOOTSERVICE_ACCESS))) {
> >
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-21  0:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-19 10:13 [PATCH] efi_loader: Remove unnecessary debug Pragnesh Patel
2020-05-19 10:24 ` Heinrich Schuchardt
2020-05-21  0:13   ` AKASHI Takahiro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.