Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Acked-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Takashi Sakamoto and committed by
Mauro Carvalho Chehab
f96cffd7 2a3edc5d

+3 -2
+3 -2
drivers/media/firewire/firedtv-rc.c
··· 184 184 else if (code >= 0x4540 && code <= 0x4542) 185 185 code = oldtable[code - 0x4521]; 186 186 else { 187 - printk(KERN_DEBUG "firedtv: invalid key code 0x%04x " 188 - "from remote control\n", code); 187 + dev_dbg(fdtv->device, 188 + "invalid key code 0x%04x from remote control\n", 189 + code); 189 190 return; 190 191 } 191 192