public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* driver probe error reporting
@ 2008-12-15 23:15 Ben Dooks
  2008-12-17  6:36 ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Ben Dooks @ 2008-12-15 23:15 UTC (permalink / raw)
  To: linux-kernel

This runs on from the discussion in [1] on how drivers (especially
one using a variant of the device driver framework) report errors
on probe. There are two main classes of errors, the type which happen
at probe time (device not responding, not enough memory, etc) and
errors that are due to configuration such as missing device configuration
data.

It has been suggested that using dev_err() to report any configuration
data error is a bloat of code as a properly debugged kernel should never
find itself in this state.

Unfortunatley the only diagnostic dev_xxx() macro is dev_dbg() which is
only available if the the driver code itself defines DEBUG. I would think
it would be better to have a macro that can be turned on/off by a kernel
configuration for when debugging which turns on the messages that are
important to developers creating new machine/arch support but disabled
for shipping kernels.

Basically, what are people's thoughts on a "Verbose probe error"
configuration option in the "Kernel hacking" submenu with its own
dev_probe_err() or similar macro?


[1] http://groups.google.com/group/fa.linux.kernel/browse_thread/thread/ce6260537381dd94/7ed3f699db907357?show_docid=7ed3f699db907357

-- 
Ben (ben@fluff.org, http://www.fluff.org/)

  'a smiley only costs 4 bytes'

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-12-17 23:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-15 23:15 driver probe error reporting Ben Dooks
2008-12-17  6:36 ` Greg KH
2008-12-17 12:44   ` Rafael J. Wysocki
2008-12-17 18:24     ` Greg KH
2008-12-17 21:44       ` Rafael J. Wysocki
2008-12-17 21:53         ` Greg KH
2008-12-17 23:05           ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox