[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201205182256.23670.rjw@sisk.pl>
Date: Fri, 18 May 2012 22:56:23 +0200
From: "Rafael J. Wysocki" <rjw@...k.pl>
To: ACPI Devel Mailing List <linux-acpi@...r.kernel.org>
Cc: LKML <linux-kernel@...r.kernel.org>, Len Brown <lenb@...nel.org>,
Linux PM list <linux-pm@...r.kernel.org>
Subject: Re: [PATCH] ACPI / PM: Fix error message in __acpi_bus_set_power()
On Monday, May 14, 2012, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rjw@...k.pl>
>
> After recent changes of the ACPI device low-power states definitions
> an error message in __acpi_bus_set_power() needs to be updated so
> that it prints the correct name of the state that has been requested
> (currently it will print "D3" for D3hot and "D4" for D3cold).
Please disregard this patch, I'll send a better one in a little while.
Thanks,
Rafael
> Signed-off-by: Rafael J. Wysocki <rjw@...k.pl>
> ---
> drivers/acpi/bus.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> Index: linux/drivers/acpi/bus.c
> ===================================================================
> --- linux.orig/drivers/acpi/bus.c
> +++ linux/drivers/acpi/bus.c
> @@ -240,7 +240,9 @@ static int __acpi_bus_set_power(struct a
> }
>
> if (!device->power.states[state].flags.valid) {
> - printk(KERN_WARNING PREFIX "Device does not support D%d\n", state);
> + printk(KERN_WARNING PREFIX "Device does not support D%d%s\n",
> + state == ACPI_STATE_D3_COLD ? 3 : state,
> + state == ACPI_STATE_D3_HOT ? "hot" : "");
> return -ENODEV;
> }
> if (device->parent && (state < device->parent->power.state)) {
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists