BTW,

The implementations of ACPI_ERROR/WARNING/INFO automatically insert a
newline at the end of the message, along with the ACPI version.

+               ACPI_ERROR((AE_INFO, "Error reading AC Adapter
state\n"));

So, you will probably want to remove the \n at the end of each of these.

With hundreds of such messages, this actually saves an "interesting"
amount of memory.

Also, I created the ACPI_EXCEPTION interface that will decode and
display the ACPI_STATUS code; you may want to use this instead of
ACPI_ERROR is some cases.

Bob


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:linux-acpi-
> [EMAIL PROTECTED] On Behalf Of Thomas Renninger
> Sent: Friday, February 03, 2006 1:20 PM
> To: ACPI-ML; Brown, Len
> Subject: Convert PRINT_DEBUG(DB_ERROR/WARNING,...) to
ACPI_ERROR/WARNING
> 
> This patch lets all ACPI errors and warnings be printed
> even ACPI_DEBUG is disabled.
> 
> I removed all "proc entry could not be created" messages
> and returned -ENODEV.
> 
> I also removed all "Error removing/adding notify handler" messages.
> I will provide a second patch (ACPICA) and add a message to
> the add/remove_handler function itself.
> 
> This should give the "non kernel debuggers" a chance to figure out
> why their xy hardware does not work without the need of recompiling
> kernels. And should provide as with better bug reports...
> 
> This one is on top of Len's latest 2.6.16-rc1/2 push.
> 
>     Thomas

-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to