projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5e3352
)
staging: nvec: use dev_warn instead of printk
author
Marc Dietrich
<marvin24@gmx.de>
Sun, 24 Jun 2012 21:25:17 +0000
(23:25 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 25 Jun 2012 17:55:37 +0000
(10:55 -0700)
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>
drivers/staging/nvec/nvec.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/nvec/nvec.c
b/drivers/staging/nvec/nvec.c
index 47ffdb834203d8979f8c7fc98b686ef12bb6c0d1..39dbaa0ac6a08178f7bdd65e7b776a42e3d7e57e 100644
(file)
--- 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);