mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/5] remove some unnecessary newline from error messages
@ 2012-11-29 11:53 Colin King
  2012-11-29 11:53 ` [PATCH 1/5] ACPI dock: remove unnecessary newline from exception message Colin King
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Colin King @ 2012-11-29 11:53 UTC (permalink / raw)
  To: Len Brown, Rafael J. Wysocki, linux-acpi; +Cc: linux-kernel

From: Colin Ian King <colin.king@canonical.com>

The ACPI_EXCEPTION and ACPI_ERROR macros already emit a newline after
the message, so remove the unnecessary newlines from a bunch of messages.

Colin Ian King (5):
  ACPI dock: remove unnecessary newline from exception message
  ACPI video: remove unnecessary newline from error messages
  ACPI sysfs: remove unnecessary newline from exception
  ACPICA: GPE support: remove unnecessary newline from error messages
  ACPI thermal: remove unnecessary newline from exception message

 drivers/acpi/acpica/hwgpe.c | 2 +-
 drivers/acpi/dock.c         | 2 +-
 drivers/acpi/sysfs.c        | 2 +-
 drivers/acpi/thermal.c      | 2 +-
 drivers/acpi/video.c        | 4 ++--
 5 files changed, 6 insertions(+), 6 deletions(-)

-- 
1.8.0


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

* [PATCH 1/5] ACPI dock: remove unnecessary newline from exception message
  2012-11-29 11:53 [PATCH 0/5] remove some unnecessary newline from error messages Colin King
@ 2012-11-29 11:53 ` Colin King
  2012-11-29 18:25   ` Toshi Kani
  2012-11-29 11:53 ` [PATCH 2/5] ACPI video: remove unnecessary newline from error messages Colin King
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 8+ messages in thread
From: Colin King @ 2012-11-29 11:53 UTC (permalink / raw)
  To: Len Brown, Rafael J. Wysocki, linux-acpi; +Cc: linux-kernel

From: Colin Ian King <colin.king@canonical.com>

ACPI_EXCEPTION() already appends a newline, so there is no
need for the failed _DCK messaged to include one too.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/acpi/dock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c
index 88eb143..a873c6b 100644
--- a/drivers/acpi/dock.c
+++ b/drivers/acpi/dock.c
@@ -475,7 +475,7 @@ static void handle_dock(struct dock_station *ds, int dock)
 	status = acpi_evaluate_object(ds->handle, "_DCK", &arg_list, &buffer);
 	if (ACPI_FAILURE(status) && status != AE_NOT_FOUND)
 		ACPI_EXCEPTION((AE_INFO, status, "%s - failed to execute"
-			" _DCK\n", (char *)name_buffer.pointer));
+			" _DCK", (char *)name_buffer.pointer));
 
 	kfree(buffer.pointer);
 	kfree(name_buffer.pointer);
-- 
1.8.0


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

* [PATCH 2/5] ACPI video: remove unnecessary newline from error messages
  2012-11-29 11:53 [PATCH 0/5] remove some unnecessary newline from error messages Colin King
  2012-11-29 11:53 ` [PATCH 1/5] ACPI dock: remove unnecessary newline from exception message Colin King
@ 2012-11-29 11:53 ` Colin King
  2012-11-29 11:53 ` [PATCH 3/5] ACPI sysfs: remove unnecessary newline from exception Colin King
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Colin King @ 2012-11-29 11:53 UTC (permalink / raw)
  To: Len Brown, Rafael J. Wysocki, linux-acpi; +Cc: linux-kernel

From: Colin Ian King <colin.king@canonical.com>

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>
---
 drivers/acpi/video.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index 0230cb6..bac0768 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -659,7 +659,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]) {
@@ -668,7 +668,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;
-- 
1.8.0


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

* [PATCH 3/5] ACPI sysfs: remove unnecessary newline from exception
  2012-11-29 11:53 [PATCH 0/5] remove some unnecessary newline from error messages Colin King
  2012-11-29 11:53 ` [PATCH 1/5] ACPI dock: remove unnecessary newline from exception message Colin King
  2012-11-29 11:53 ` [PATCH 2/5] ACPI video: remove unnecessary newline from error messages Colin King
@ 2012-11-29 11:53 ` Colin King
  2012-11-29 11:53 ` [PATCH 4/5] ACPICA: GPE support: remove unnecessary newline from error messages Colin King
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Colin King @ 2012-11-29 11:53 UTC (permalink / raw)
  To: Len Brown, Rafael J. Wysocki, linux-acpi; +Cc: linux-kernel

From: Colin Ian King <colin.king@canonical.com>

ACPI_EXCEPTION() already appends a newline, so there is no
need for the invalid GPE message to include one too.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/acpi/sysfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c
index 7c3f98b..9fc5379 100644
--- a/drivers/acpi/sysfs.c
+++ b/drivers/acpi/sysfs.c
@@ -498,7 +498,7 @@ static int get_status(u32 index, acpi_event_status *status,
 		result = acpi_get_gpe_device(index, handle);
 		if (result) {
 			ACPI_EXCEPTION((AE_INFO, AE_NOT_FOUND,
-					"Invalid GPE 0x%x\n", index));
+					"Invalid GPE 0x%x", index));
 			goto end;
 		}
 		result = acpi_get_gpe_status(*handle, index, status);
-- 
1.8.0


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

* [PATCH 4/5] ACPICA: GPE support: remove unnecessary newline from error messages
  2012-11-29 11:53 [PATCH 0/5] remove some unnecessary newline from error messages Colin King
                   ` (2 preceding siblings ...)
  2012-11-29 11:53 ` [PATCH 3/5] ACPI sysfs: remove unnecessary newline from exception Colin King
@ 2012-11-29 11:53 ` Colin King
  2012-11-29 11:53 ` [PATCH 5/5] ACPI thermal: remove unnecessary newline from exception message Colin King
  2013-01-15 22:27 ` [PATCH 0/5] remove some unnecessary newline from error messages Rafael J. Wysocki
  5 siblings, 0 replies; 8+ messages in thread
From: Colin King @ 2012-11-29 11:53 UTC (permalink / raw)
  To: Len Brown, Rafael J. Wysocki, linux-acpi; +Cc: linux-kernel

From: Colin Ian King <colin.king@canonical.com>

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>
---
 drivers/acpi/acpica/hwgpe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/acpica/hwgpe.c b/drivers/acpi/acpica/hwgpe.c
index db40765..610ed72 100644
--- a/drivers/acpi/acpica/hwgpe.c
+++ b/drivers/acpi/acpica/hwgpe.c
@@ -134,7 +134,7 @@ acpi_hw_low_set_gpe(struct acpi_gpe_event_info *gpe_event_info, u32 action)
 		break;
 
 	default:
-		ACPI_ERROR((AE_INFO, "Invalid GPE Action, %u\n", action));
+		ACPI_ERROR((AE_INFO, "Invalid GPE Action, %u", action));
 		return (AE_BAD_PARAMETER);
 	}
 
-- 
1.8.0


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

* [PATCH 5/5] ACPI thermal: remove unnecessary newline from exception message
  2012-11-29 11:53 [PATCH 0/5] remove some unnecessary newline from error messages Colin King
                   ` (3 preceding siblings ...)
  2012-11-29 11:53 ` [PATCH 4/5] ACPICA: GPE support: remove unnecessary newline from error messages Colin King
@ 2012-11-29 11:53 ` Colin King
  2013-01-15 22:27 ` [PATCH 0/5] remove some unnecessary newline from error messages Rafael J. Wysocki
  5 siblings, 0 replies; 8+ messages in thread
From: Colin King @ 2012-11-29 11:53 UTC (permalink / raw)
  To: Len Brown, Rafael J. Wysocki, linux-acpi; +Cc: linux-kernel

From: Colin Ian King <colin.king@canonical.com>

ACPI_EXCEPTION() already appends a newline, so there is no
need for the thermal trip point message to include one too.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/acpi/thermal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
index 804204d..2020d44 100644
--- a/drivers/acpi/thermal.c
+++ b/drivers/acpi/thermal.c
@@ -288,7 +288,7 @@ do {	\
 	if (flags != ACPI_TRIPS_INIT)	\
 		ACPI_EXCEPTION((AE_INFO, AE_ERROR,	\
 		"ACPI thermal trip point %s changed\n"	\
-		"Please send acpidump to linux-acpi@vger.kernel.org\n", str)); \
+		"Please send acpidump to linux-acpi@vger.kernel.org", str)); \
 } while (0)
 
 static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag)
-- 
1.8.0


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

* Re: [PATCH 1/5] ACPI dock: remove unnecessary newline from exception message
  2012-11-29 11:53 ` [PATCH 1/5] ACPI dock: remove unnecessary newline from exception message Colin King
@ 2012-11-29 18:25   ` Toshi Kani
  0 siblings, 0 replies; 8+ messages in thread
From: Toshi Kani @ 2012-11-29 18:25 UTC (permalink / raw)
  To: Colin King; +Cc: Len Brown, Rafael J. Wysocki, linux-acpi, linux-kernel

On Thu, 2012-11-29 at 11:53 +0000, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> ACPI_EXCEPTION() already appends a newline, so there is no
> need for the failed _DCK messaged to include one too.
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  drivers/acpi/dock.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c
> index 88eb143..a873c6b 100644
> --- a/drivers/acpi/dock.c
> +++ b/drivers/acpi/dock.c
> @@ -475,7 +475,7 @@ static void handle_dock(struct dock_station *ds, int dock)
>  	status = acpi_evaluate_object(ds->handle, "_DCK", &arg_list, &buffer);
>  	if (ACPI_FAILURE(status) && status != AE_NOT_FOUND)
>  		ACPI_EXCEPTION((AE_INFO, status, "%s - failed to execute"
> -			" _DCK\n", (char *)name_buffer.pointer));
> +			" _DCK", (char *)name_buffer.pointer));

Hi Colin,

In Rafael's linux-pm tree, this message has been changed to the
following.  So, this patch is not necessary.

 if (ACPI_FAILURE(status) && status != AE_NOT_FOUND)
         acpi_handle_err(ds->handle, "Failed to execute _DCK (0x%x)\n",
                         status);

Thanks,
-Toshi


>  
>  	kfree(buffer.pointer);
>  	kfree(name_buffer.pointer);



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

* Re: [PATCH 0/5] remove some unnecessary newline from error messages
  2012-11-29 11:53 [PATCH 0/5] remove some unnecessary newline from error messages Colin King
                   ` (4 preceding siblings ...)
  2012-11-29 11:53 ` [PATCH 5/5] ACPI thermal: remove unnecessary newline from exception message Colin King
@ 2013-01-15 22:27 ` Rafael J. Wysocki
  5 siblings, 0 replies; 8+ messages in thread
From: Rafael J. Wysocki @ 2013-01-15 22:27 UTC (permalink / raw)
  To: Colin King; +Cc: Len Brown, linux-acpi, linux-kernel

On Thursday, November 29, 2012 11:53:11 AM Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> The ACPI_EXCEPTION and ACPI_ERROR macros already emit a newline after
> the message, so remove the unnecessary newlines from a bunch of messages.
> 
> Colin Ian King (5):
>   ACPI dock: remove unnecessary newline from exception message
>   ACPI video: remove unnecessary newline from error messages
>   ACPI sysfs: remove unnecessary newline from exception
>   ACPICA: GPE support: remove unnecessary newline from error messages
>   ACPI thermal: remove unnecessary newline from exception message
> 
>  drivers/acpi/acpica/hwgpe.c | 2 +-
>  drivers/acpi/dock.c         | 2 +-
>  drivers/acpi/sysfs.c        | 2 +-
>  drivers/acpi/thermal.c      | 2 +-
>  drivers/acpi/video.c        | 4 ++--
>  5 files changed, 6 insertions(+), 6 deletions(-)

I don't seem to have received patch [1/5] (dock).

Patches [2-3/5] and [5/5] have been taken into linux-pm/linux-next for v3.9,
but [4/5] needs to go through ACPICA upstream.

Thanks,
Rafael


-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

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

end of thread, other threads:[~2013-01-15 22:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-29 11:53 [PATCH 0/5] remove some unnecessary newline from error messages Colin King
2012-11-29 11:53 ` [PATCH 1/5] ACPI dock: remove unnecessary newline from exception message Colin King
2012-11-29 18:25   ` Toshi Kani
2012-11-29 11:53 ` [PATCH 2/5] ACPI video: remove unnecessary newline from error messages Colin King
2012-11-29 11:53 ` [PATCH 3/5] ACPI sysfs: remove unnecessary newline from exception Colin King
2012-11-29 11:53 ` [PATCH 4/5] ACPICA: GPE support: remove unnecessary newline from error messages Colin King
2012-11-29 11:53 ` [PATCH 5/5] ACPI thermal: remove unnecessary newline from exception message Colin King
2013-01-15 22:27 ` [PATCH 0/5] remove some unnecessary newline from error messages 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

all inboxes | Powered by JetHome®