This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/media_tree.git tree:

Subject: [media] media: rc-core: simplify logging in rc_register_device
Author:  Heiner Kallweit <[email protected]>
Date:    Thu Oct 29 19:39:06 2015 -0200

Simplify the logging.

I had some doubts about using the elvis operator as it's GNU extension.
However GNU extensions are explicitely allowed and this operator is
used at several places in the kernel code.

Signed-off-by: Heiner Kallweit <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/rc/rc-main.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/media_tree.git/commit/?id=4dc0e908a5512f6ff4be2b4cbb128495c1eaf1ba

diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c
index ea1008c..784be5e 100644
--- a/drivers/media/rc/rc-main.c
+++ b/drivers/media/rc/rc-main.c
@@ -1420,10 +1420,8 @@ int rc_register_device(struct rc_dev *dev)
        dev->input_dev->rep[REP_PERIOD] = 125;
 
        path = kobject_get_path(&dev->dev.kobj, GFP_KERNEL);
-       printk(KERN_INFO "%s: %s as %s\n",
-               dev_name(&dev->dev),
-               dev->input_name ? dev->input_name : "Unspecified device",
-               path ? path : "N/A");
+       dev_info(&dev->dev, "%s as %s\n",
+               dev->input_name ?: "Unspecified device", path ?: "N/A");
        kfree(path);
 
        if (dev->driver_type == RC_DRIVER_IR_RAW) {

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to