aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kepplinger <martink@posteo.de>2015-03-12 19:48:17 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-03-17 21:08:56 -0400
commit9237516c1b96553040e95588347e2f6d337531ae (patch)
tree2468c2c795a69afc7609892e6f5b34758f2bf0f8
parent06e5801b8cb3fc057d88cb4dc03c0b64b2744cda (diff)
ACPI / battery: make warning greppable
Signed-off-by: Martin Kepplinger <martink@posteo.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/acpi/battery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
index d98ba4355819..baebd1a9b811 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)
530 battery->rate_now != ACPI_BATTERY_VALUE_UNKNOWN && 530 battery->rate_now != ACPI_BATTERY_VALUE_UNKNOWN &&
531 (s16)(battery->rate_now) < 0) { 531 (s16)(battery->rate_now) < 0) {
532 battery->rate_now = abs((s16)battery->rate_now); 532 battery->rate_now = abs((s16)battery->rate_now);
533 printk_once(KERN_WARNING FW_BUG "battery: (dis)charge rate" 533 printk_once(KERN_WARNING FW_BUG
534 " invalid.\n"); 534 "battery: (dis)charge rate invalid.\n");
535 } 535 }
536 536
537 if (test_bit(ACPI_BATTERY_QUIRK_PERCENTAGE_CAPACITY, &battery->flags) 537 if (test_bit(ACPI_BATTERY_QUIRK_PERCENTAGE_CAPACITY, &battery->flags)