ACPI / power: add missing newline to debug messages
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 5 Jul 2013 09:15:56 +0000 (12:15 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 5 Jul 2013 11:30:20 +0000 (13:30 +0200)
There are few places in power.c where debug messages have no newline
at the end.  Reading such debug messages from dmesg is not fun, so
fix this by adding the missing newlines.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: All <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/power.c

index 288bb270f8edc11cb0d92e23f7b759619e35e660..5c28c894c0fc204925f489fdf988a01abb74bc88 100644 (file)
@@ -279,7 +279,7 @@ static int acpi_power_on_unlocked(struct acpi_power_resource *resource)
 
        if (resource->ref_count++) {
                ACPI_DEBUG_PRINT((ACPI_DB_INFO,
-                                 "Power resource [%s] already on",
+                                 "Power resource [%s] already on\n",
                                  resource->name));
        } else {
                result = __acpi_power_on(resource);
@@ -325,7 +325,7 @@ static int acpi_power_off_unlocked(struct acpi_power_resource *resource)
 
        if (!resource->ref_count) {
                ACPI_DEBUG_PRINT((ACPI_DB_INFO,
-                                 "Power resource [%s] already off",
+                                 "Power resource [%s] already off\n",
                                  resource->name));
                return 0;
        }