linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* cosmetic issue with error message 'Invalid Power Resource to register!'
@ 2012-10-28 18:44 Toralf Förster
  2012-10-29 17:25 ` [PATCH] acpi: add newline in power.c message Randy Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Toralf Förster @ 2012-10-28 18:44 UTC (permalink / raw)
  To: linux-acpi

From time to time I get a line like at my Gentoo Linux:

kernel: ACPI: Invalid Power Resource to register!<6>usb 2-1.2: new high-speed USB device number 3 using ehci_hcd

I'm wondering whether there should be newline between both of them or what <6> means.

-- 
MfG/Sincerely
Toralf Förster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* [PATCH] acpi: add newline in power.c message
  2012-10-28 18:44 cosmetic issue with error message 'Invalid Power Resource to register!' Toralf Förster
@ 2012-10-29 17:25 ` Randy Dunlap
  2012-10-30 20:34   ` Bjorn Helgaas
  2012-11-02 12:50   ` Rafael J. Wysocki
  0 siblings, 2 replies; 4+ messages in thread
From: Randy Dunlap @ 2012-10-29 17:25 UTC (permalink / raw)
  To: Toralf Förster; +Cc: linux-acpi, Len Brown, Rafael J. Wysocki

From: Randy Dunlap <rdunlap@xenotime.net>

Add newline to printk so that the message is on a line
by itself and not merged with something unrelated to it.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Reported-by: Toralf Förster <toralf.foerster@gmx.de>
Cc:	Len Brown <lenb@kernel.org>
Cc:	Rafael J. Wysocki <rjw@sisk.pl>
---
 drivers/acpi/power.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- lnx-37-rc3.orig/drivers/acpi/power.c
+++ lnx-37-rc3/drivers/acpi/power.c
@@ -473,7 +473,7 @@ int acpi_power_resource_register_device(
 	return ret;
 
 no_power_resource:
-	printk(KERN_DEBUG PREFIX "Invalid Power Resource to register!");
+	printk(KERN_DEBUG PREFIX "Invalid Power Resource to register!\n");
 	return -ENODEV;
 }
 EXPORT_SYMBOL_GPL(acpi_power_resource_register_device);
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] acpi: add newline in power.c message
  2012-10-29 17:25 ` [PATCH] acpi: add newline in power.c message Randy Dunlap
@ 2012-10-30 20:34   ` Bjorn Helgaas
  2012-11-02 12:50   ` Rafael J. Wysocki
  1 sibling, 0 replies; 4+ messages in thread
From: Bjorn Helgaas @ 2012-10-30 20:34 UTC (permalink / raw)
  To: Randy Dunlap
  Cc: Toralf Förster, linux-acpi, Len Brown, Rafael J. Wysocki

On Mon, Oct 29, 2012 at 11:25 AM, Randy Dunlap <rdunlap@xenotime.net> wrote:
> From: Randy Dunlap <rdunlap@xenotime.net>
>
> Add newline to printk so that the message is on a line
> by itself and not merged with something unrelated to it.
>
> Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
> Reported-by: Toralf Förster <toralf.foerster@gmx.de>
> Cc:     Len Brown <lenb@kernel.org>
> Cc:     Rafael J. Wysocki <rjw@sisk.pl>
> ---
>  drivers/acpi/power.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- lnx-37-rc3.orig/drivers/acpi/power.c
> +++ lnx-37-rc3/drivers/acpi/power.c
> @@ -473,7 +473,7 @@ int acpi_power_resource_register_device(
>         return ret;
>
>  no_power_resource:
> -       printk(KERN_DEBUG PREFIX "Invalid Power Resource to register!");
> +       printk(KERN_DEBUG PREFIX "Invalid Power Resource to register!\n");

It'd be nice if this and the other similar printks in this file
included a hint about the context, e.g., the device to which it's
related.

>         return -ENODEV;
>  }
>  EXPORT_SYMBOL_GPL(acpi_power_resource_register_device);
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] acpi: add newline in power.c message
  2012-10-29 17:25 ` [PATCH] acpi: add newline in power.c message Randy Dunlap
  2012-10-30 20:34   ` Bjorn Helgaas
@ 2012-11-02 12:50   ` Rafael J. Wysocki
  1 sibling, 0 replies; 4+ messages in thread
From: Rafael J. Wysocki @ 2012-11-02 12:50 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: Toralf Förster, linux-acpi, Len Brown

On Monday, October 29, 2012 10:25:19 AM Randy Dunlap wrote:
> From: Randy Dunlap <rdunlap@xenotime.net>
> 
> Add newline to printk so that the message is on a line
> by itself and not merged with something unrelated to it.
> 
> Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
> Reported-by: Toralf Förster <toralf.foerster@gmx.de>
> Cc:	Len Brown <lenb@kernel.org>
> Cc:	Rafael J. Wysocki <rjw@sisk.pl>

Applied to the linux-next branch of the linux-pm.git tree as v3.8 material.

Thanks,
Rafael



> ---
>  drivers/acpi/power.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- lnx-37-rc3.orig/drivers/acpi/power.c
> +++ lnx-37-rc3/drivers/acpi/power.c
> @@ -473,7 +473,7 @@ int acpi_power_resource_register_device(
>  	return ret;
>  
>  no_power_resource:
> -	printk(KERN_DEBUG PREFIX "Invalid Power Resource to register!");
> +	printk(KERN_DEBUG PREFIX "Invalid Power Resource to register!\n");
>  	return -ENODEV;
>  }
>  EXPORT_SYMBOL_GPL(acpi_power_resource_register_device);
> 
-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2012-11-02 12:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-28 18:44 cosmetic issue with error message 'Invalid Power Resource to register!' Toralf Förster
2012-10-29 17:25 ` [PATCH] acpi: add newline in power.c message Randy Dunlap
2012-10-30 20:34   ` Bjorn Helgaas
2012-11-02 12:50   ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).