]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] firewire: use dev_dbg() instead of printk()
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 18 Oct 2016 22:53:35 +0000 (20:53 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 21 Oct 2016 12:05:34 +0000 (10:05 -0200)
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>
drivers/media/firewire/firedtv-rc.c

index f82d4a93feb3f205080a5bdc85d0dcf1b58f48ac..04dea2aac58361ff83ca0312e254c31b7a794e69 100644 (file)
@@ -184,8 +184,9 @@ void fdtv_handle_rc(struct firedtv *fdtv, unsigned int code)
        else if (code >= 0x4540 && code <= 0x4542)
                code = oldtable[code - 0x4521];
        else {
-               printk(KERN_DEBUG "firedtv: invalid key code 0x%04x "
-                      "from remote control\n", code);
+               dev_dbg(fdtv->device,
+                       "invalid key code 0x%04x from remote control\n",
+                       code);
                return;
        }