mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Toshi Kani <toshi.kani@hp.com>
To: Colin King <colin.king@canonical.com>
Cc: Len Brown <lenb@kernel.org>, "Rafael J. Wysocki" <rjw@sisk.pl>,
	linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/5] ACPI dock: remove unnecessary newline from exception message
Date: Thu, 29 Nov 2012 11:25:19 -0700	[thread overview]
Message-ID: <1354213519.26955.447.camel@misato.fc.hp.com> (raw)
In-Reply-To: <1354189996-14431-2-git-send-email-colin.king@canonical.com>

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);



  reply	other threads:[~2012-11-29 18:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1354213519.26955.447.camel@misato.fc.hp.com \
    --to=toshi.kani@hp.com \
    --cc=colin.king@canonical.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rjw@sisk.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®