Skip to content

Commit f96cffd

Browse files
takaswiemchehab
authored andcommitted
[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>
1 parent 2a3edc5 commit f96cffd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎drivers/media/firewire/firedtv-rc.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,9 @@ void fdtv_handle_rc(struct firedtv *fdtv, unsigned int code)
184184
else if (code >= 0x4540 && code <= 0x4542)
185185
code = oldtable[code - 0x4521];
186186
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);
189190
return;
190191
}
191192

0 commit comments

Comments
 (0)