Re: [PATCH 2.6] Fix dev_printk to work with unclaimed devices

From: Linus Torvalds
Date: Thu Feb 26 2004 - 13:40:49 EST



On Thu, 26 Feb 2004, Deepak Saxena wrote:
>
> I need to do some fixup in platform_notify() and when trying to
> use the dev_* print functions for informational messages, they OOPs
> b/c the current code assumes that dev->driver exists. This is not the
> case since platform_notify() is called before a device has been attached
> to any driver.

Make it a real function with varags, please.

On the other hand, it also is probably just _wrong_ to use "dev_printk()"
if you aren't the driver for the device.

Linus
-
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/