Skip to content

Commit

Permalink
ACPI video: remove unnecessary newline from error messages
Browse files Browse the repository at this point in the history
ACPI_ERROR() already appends a newline, so there is no
need for the error messages to include one too.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Colin Ian King authored and Rafael J. Wysocki committed Jan 25, 2013
1 parent 208f6cc commit bf6787e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/acpi/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ acpi_video_init_brightness(struct acpi_video_device *device)
br->levels[i] = br->levels[i - level_ac_battery];
count += level_ac_battery;
} else if (level_ac_battery > 2)
ACPI_ERROR((AE_INFO, "Too many duplicates in _BCL package\n"));
ACPI_ERROR((AE_INFO, "Too many duplicates in _BCL package"));

/* Check if the _BCL package is in a reversed order */
if (max_level == br->levels[2]) {
Expand All @@ -682,7 +682,7 @@ acpi_video_init_brightness(struct acpi_video_device *device)
acpi_video_cmp_level, NULL);
} else if (max_level != br->levels[count - 1])
ACPI_ERROR((AE_INFO,
"Found unordered _BCL package\n"));
"Found unordered _BCL package"));

br->count = count;
device->brightness = br;
Expand Down

0 comments on commit bf6787e

Please sign in to comment.