tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Converting kernel printf() to aprint_*() or log()
On Nov 11, 11:11pm, martin%duskware.de@localhost (Martin Husemann) wrote:
-- Subject: Re: Converting kernel printf() to aprint_*() or log()
| That sounds like a good plan, please correct me if I understood
| wrong:
|
| - create a log_dev(device_t, const char *fmt, ...) function and use that
| in drivers instead of printf() when not in the driver's *_attach()
| function (or functions only called from that); use log(9) where
| appropriate instead for printfs not using device_xname().
Yes, it should be:
void log_dev(device_t dev, int level, const char *fmt, ...);
as originally proposed.
| - find simple printf-family calls inside driver's *_attach() functions
| (or functions only called from those) and convert them to aprint_*.
Right.
christos
Home |
Main Index |
Thread Index |
Old Index