diff mbox

acpi: battery: make warning greppable

Message ID 1426204097-3024-1-git-send-email-martink@posteo.de (mailing list archive)
State Accepted, archived
Delegated to: Rafael Wysocki
Headers show

Commit Message

Martin Kepplinger-Novakovic March 12, 2015, 11:48 p.m. UTC
Signed-off-by: Martin Kepplinger <martink@posteo.de>
---
I was so angry now, I had to write a change. Please keep things greppable and
save unnecessary questions and time this way.

 drivers/acpi/battery.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Rafael J. Wysocki March 18, 2015, 3:27 p.m. UTC | #1
On Friday, March 13, 2015 12:48:17 AM Martin Kepplinger wrote:
> Signed-off-by: Martin Kepplinger <martink@posteo.de>
> ---
> I was so angry now, I had to write a change. Please keep things greppable and
> save unnecessary questions and time this way.

Queued up for 4.1, thanks!

>  drivers/acpi/battery.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
> index d98ba43..baebd1a 100644
> --- a/drivers/acpi/battery.c
> +++ b/drivers/acpi/battery.c
> @@ -530,8 +530,8 @@ static int acpi_battery_get_state(struct acpi_battery *battery)
>  		battery->rate_now != ACPI_BATTERY_VALUE_UNKNOWN &&
>  		(s16)(battery->rate_now) < 0) {
>  		battery->rate_now = abs((s16)battery->rate_now);
> -		printk_once(KERN_WARNING FW_BUG "battery: (dis)charge rate"
> -			" invalid.\n");
> +		printk_once(KERN_WARNING FW_BUG
> +			    "battery: (dis)charge rate invalid.\n");
>  	}
>  
>  	if (test_bit(ACPI_BATTERY_QUIRK_PERCENTAGE_CAPACITY, &battery->flags)
>
diff mbox

Patch

diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
index d98ba43..baebd1a 100644
--- a/drivers/acpi/battery.c
+++ b/drivers/acpi/battery.c
@@ -530,8 +530,8 @@  static int acpi_battery_get_state(struct acpi_battery *battery)
 		battery->rate_now != ACPI_BATTERY_VALUE_UNKNOWN &&
 		(s16)(battery->rate_now) < 0) {
 		battery->rate_now = abs((s16)battery->rate_now);
-		printk_once(KERN_WARNING FW_BUG "battery: (dis)charge rate"
-			" invalid.\n");
+		printk_once(KERN_WARNING FW_BUG
+			    "battery: (dis)charge rate invalid.\n");
 	}
 
 	if (test_bit(ACPI_BATTERY_QUIRK_PERCENTAGE_CAPACITY, &battery->flags)