From: Len Brown <lenb@kernel.org>
To: Carlos Corbacho <carlos@strangeworlds.co.uk>
Cc: linux-acpi@vger.kernel.org
Subject: Re: [PATCH 2/4] acer-wmi: Make device detection error messages more descriptive
Date: Tue, 11 Mar 2008 17:57:37 -0400 [thread overview]
Message-ID: <200803111757.37771.lenb@kernel.org> (raw)
In-Reply-To: <20080224133424.2317.90354.stgit@pacifica>
On Sunday 24 February 2008, Carlos Corbacho wrote:
> The current device detection error messages are all copy & pasted - make
> them more descriptive so it's easier to see where in the code a problem
> occurs.
>
> Signed-off-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
> ---
>
> drivers/misc/acer-wmi.c | 8 +++++---
> 1 files changed, 5 insertions(+), 3 deletions(-)
>
>
> diff --git a/drivers/misc/acer-wmi.c b/drivers/misc/acer-wmi.c
> index d1d64db..99beeb8 100644
> --- a/drivers/misc/acer-wmi.c
> +++ b/drivers/misc/acer-wmi.c
> @@ -1052,11 +1052,12 @@ static int __init acer_wmi_init(void)
>
> if (wmi_has_guid(WMID_GUID2) && interface) {
> if (ACPI_FAILURE(WMID_set_capabilities())) {
> - printk(ACER_ERR "Unable to detect available devices\n");
> + printk(ACER_ERR "Unable to detect available WMID ");
While KERN_CONT will shut up checkpatch, I don't think
it isn't what you want here
since acer_wmi is loaded well afer we've gone SMP.
> + printk(KERN_CONT "devices\n");
Instead, to get under 80 columns, you simpmly want to do something like this:
printk(ACER_ERR "Unable to detect available WMID "
"devices");
as the pre-processor will concatenate adjacent strings for you at build time.
-Len
> return -ENODEV;
> }
> } else if (!wmi_has_guid(WMID_GUID2) && interface) {
> - printk(ACER_ERR "Unable to detect available devices\n");
> + printk(ACER_ERR "No WMID device detection method found\n");
> return -ENODEV;
> }
>
> @@ -1064,7 +1065,8 @@ static int __init acer_wmi_init(void)
> interface = &AMW0_interface;
>
> if (ACPI_FAILURE(AMW0_set_capabilities())) {
> - printk(ACER_ERR "Unable to detect available devices\n");
> + printk(ACER_ERR "Unable to detect available AMW0 ");
> + printk(KERN_CONT "devices\n");
> return -ENODEV;
> }
> }
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2008-03-11 21:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-24 13:34 [PATCH 0/4] ACPI-WMI patches for 2.6.25-rc3 Carlos Corbacho
2008-02-24 13:34 ` [PATCH 1/4] acer-wmi: Rename mail LED correctly & remove hardcoded colour Carlos Corbacho
2008-03-11 21:59 ` Len Brown
2008-02-24 13:34 ` [PATCH 2/4] acer-wmi: Make device detection error messages more descriptive Carlos Corbacho
2008-03-11 21:57 ` Len Brown [this message]
2008-03-11 22:10 ` Carlos Corbacho
2008-02-24 13:34 ` [PATCH 3/4] acer-wmi: Don't warn if mail LED cannot be detected Carlos Corbacho
2008-03-11 21:59 ` Len Brown
2008-02-24 13:34 ` [PATCH 4/4] ACPI: WMI: Clean up handling of spec violating data blocks Carlos Corbacho
2008-03-11 22:00 ` Len Brown
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=200803111757.37771.lenb@kernel.org \
--to=lenb@kernel.org \
--cc=carlos@strangeworlds.co.uk \
--cc=linux-acpi@vger.kernel.org \
/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