Re: [PATCH] ACPI / PM: Fix error message in __acpi_bus_set_power()

From: Rafael J. Wysocki
Date: Fri May 18 2012 - 16:51:32 EST


On Monday, May 14, 2012, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rjw@xxxxxxx>
>
> 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@xxxxxxx>
> ---
> 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@xxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/