diff options
author | Marc Dietrich <marvin24@gmx.de> | 2012-06-24 23:25:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-25 10:55:37 -0700 |
commit | 50d4656a2304e48917a8e2b9df99f69d50b8a0aa (patch) | |
tree | 31bb94a85ba607bd6cefdee85e8b63b68fd6fa96 /drivers/staging/nvec | |
parent | f5e3352e5185ef37700da9a51c333559381fe8fd (diff) | |
download | op-kernel-dev-50d4656a2304e48917a8e2b9df99f69d50b8a0aa.zip op-kernel-dev-50d4656a2304e48917a8e2b9df99f69d50b8a0aa.tar.gz |
staging: nvec: use dev_warn instead of printk
Replace a printk in nvec core driver with dev_warn.
Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/nvec')
-rw-r--r-- | drivers/staging/nvec/nvec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index 47ffdb8..39dbaa0 100644 --- a/drivers/staging/nvec/nvec.c +++ b/drivers/staging/nvec/nvec.c @@ -127,12 +127,14 @@ EXPORT_SYMBOL_GPL(nvec_register_notifier); static int nvec_status_notifier(struct notifier_block *nb, unsigned long event_type, void *data) { + struct nvec_chip *nvec = container_of(nb, struct nvec_chip, + nvec_status_notifier); unsigned char *msg = (unsigned char *)data; if (event_type != NVEC_CNTL) return NOTIFY_DONE; - 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); |