提交 f96cffd7 编写于 作者: T Takashi Sakamoto 提交者: Mauro Carvalho Chehab

[media] firewire: use dev_dbg() instead of printk()

A structure for firedtv (struct firedtv) has a member for a pointer to
struct device. In this case, we can use dev_dbg() for debug printing.
This is more preferrable behaviour in device driver development.
Signed-off-by: NTakashi Sakamoto <o-takashi@sakamocchi.jp>
Acked-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 2a3edc5d
...@@ -184,8 +184,9 @@ void fdtv_handle_rc(struct firedtv *fdtv, unsigned int code) ...@@ -184,8 +184,9 @@ void fdtv_handle_rc(struct firedtv *fdtv, unsigned int code)
else if (code >= 0x4540 && code <= 0x4542) else if (code >= 0x4540 && code <= 0x4542)
code = oldtable[code - 0x4521]; code = oldtable[code - 0x4521];
else { else {
printk(KERN_DEBUG "firedtv: invalid key code 0x%04x " dev_dbg(fdtv->device,
"from remote control\n", code); "invalid key code 0x%04x from remote control\n",
code);
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册