Re: [patch 1/3] acpi: dock driver

From: Patrick Mochel
Date: Wed Apr 19 2006 - 13:40:26 EST


On Wed, Apr 19, 2006 at 10:14:46AM -0700, Moore, Robert wrote:
> This is something to think about before we rip out all the ACPI
> core-style debug stuff.

Not sure which part you're referring to, but maybe these:

> > > > --- /dev/null
> > > > +++ 2.6-git-kca2/drivers/acpi/dock.c
> > > > @@ -0,0 +1,652 @@
> > >
> > > > +#define ACPI_DOCK_COMPONENT 0x10000000
> > > > +#define ACPI_DOCK_DRIVER_NAME "ACPI Dock Station Driver"
> > > > +#define _COMPONENT ACPI_DOCK_COMPONENT
> > >
> > > These aren't necessary for code that is outside of the ACPI-CA.
> >
> > Originally I did not include these, but it turns out if you wish to
> use
> > the ACPI_DEBUG macro, you need to have these things defined. I did go
> > ahead and use this macro in a couple places, mainly because I felt
> that
> > even though this isn't strictly an acpi driver (using the acpi driver
> > model), it does live in drivers/acpi and perhaps people might expect
> to
> > be able to debug it the same way.


Some of us have already thought about it. :-)

We have standard debugging macros that are used in many driver subsystems
defined in include/linux/device.h (dev_printk(), dev_dbg(), dev_err(), and
friends). The ACPI drivers are not very different than other Linux driver
subsystems (at a very basic level). They are very Linux-specific (not
portable like the CA), and should be using Linux-specific constructs as
much as possible to match the rest of the kernel. This makes it much
eaiser for people to understand exactly what those drivers are doing..


Pat
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/