[PATCH 2/7] staging: nvec: use dev_warn instead of printk
Julian Andres Klode
jak at jak-linux.org
Fri Jun 15 22:06:30 UTC 2012
On Thu, Jun 14, 2012 at 11:57:36PM +0200, Marc Dietrich wrote:
> Replace a printk in nvec core driver with dev_warn.
>
> Signed-off-by: Marc Dietrich <marvin24 at gmx.de>
> ---
> - printk(KERN_WARNING "unhandled msg type %ld\n", event_type);
> + dev_warn(nvec->dev, "unhandled msg type %ld\n", event_type);
> print_hex_dump(KERN_WARNING, "payload: ", DUMP_PREFIX_NONE, 16, 1,
> msg, msg[1] + 2, true);
Is this stuff sensible at all? Now we have two lines, the first is
prefixed with the device, the second not, but both belong together.
--
Julian Andres Klode - Debian Developer, Ubuntu Member
See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
More information about the devel
mailing list