Re: [PATCH v2] ACPI: scan: Use pr_debug replace ACPI_DEBUG_PRINT()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Sep 27, 2020 at 3:17 AM Tian Tao <tiantao6@xxxxxxxxxxxxx> wrote:
>
> Fixes the following W=1 kernel build warning(s):
> drivers/acpi/scan.c: In function ‘acpi_bus_get_wakeup_device_flags’:
> drivers/acpi/scan.c:902:43: warning: suggest braces around empty body in
> an ‘if’ statement [-Wempty-body]
>
> Signed-off-by: Tian Tao <tiantao6@xxxxxxxxxxxxx>
> ---
> v2:rewrite the patch and change the patch name.
> ---
>  drivers/acpi/scan.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
> index 2142f15..684c726 100644
> --- a/drivers/acpi/scan.c
> +++ b/drivers/acpi/scan.c
> @@ -898,8 +898,7 @@ static void acpi_bus_get_wakeup_device_flags(struct acpi_device *device)
>          */
>         err = acpi_device_sleep_wake(device, 0, 0, 0);
>         if (err)
> -               ACPI_DEBUG_PRINT((ACPI_DB_INFO,
> -                               "error in _DSW or _PSW evaluation\n"));
> +               pr_debug("error in _DSW or _PSW evaluation\n");
>  }
>
>  static void acpi_bus_init_power_state(struct acpi_device *device, int state)
> --

Applied as 5.10 material with edited subject and changelog, thanks!



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux