[media] siano: replace sms_log() by pr_debug()
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 22 Feb 2015 14:33:09 +0000 (11:33 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 26 Feb 2015 12:10:03 +0000 (09:10 -0300)
Despite its name, those functions are acutally debug
prints for the IR part of the driver. So, properly
map them using pr_debug()

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/common/siano/smscoreapi.h
drivers/media/common/siano/smsir.c

index 9ea6a10757d558341c5c6951612354f0f59d3700..ab6506fd65c880f08c8bdd56033e753873db591f 100644 (file)
@@ -1179,7 +1179,6 @@ int smscore_led_state(struct smscore_device_t *core, int led);
 #define DBG_INFO 1
 #define DBG_ADV  2
 
-#define sms_log(fmt, arg...) pr_info(fmt "\n", ##arg)
 #define sms_info(fmt, arg...) do {\
        if (sms_dbg & DBG_INFO) \
                pr_info(fmt "\n", ##arg); \
index 2e0f96ff5594fc45a53325f928508d2526c55684..1d60d200d9ab1d7a23becbfd0259b9e728d0a22e 100644 (file)
@@ -57,14 +57,14 @@ int sms_ir_init(struct smscore_device_t *coredev)
        int board_id = smscore_get_board_id(coredev);
        struct rc_dev *dev;
 
-       sms_log("Allocating rc device");
+       pr_debug("Allocating rc device\n");
        dev = rc_allocate_device();
        if (!dev)
                return -ENOMEM;
 
        coredev->ir.controller = 0;     /* Todo: vega/nova SPI number */
        coredev->ir.timeout = IR_DEFAULT_TIMEOUT;
-       sms_log("IR port %d, timeout %d ms",
+       pr_debug("IR port %d, timeout %d ms\n",
                        coredev->ir.controller, coredev->ir.timeout);
 
        snprintf(coredev->ir.name, sizeof(coredev->ir.name),
@@ -91,7 +91,8 @@ int sms_ir_init(struct smscore_device_t *coredev)
        dev->map_name = sms_get_board(board_id)->rc_codes;
        dev->driver_name = MODULE_NAME;
 
-       sms_log("Input device (IR) %s is set for key events", dev->input_name);
+       pr_debug("Input device (IR) %s is set for key events\n",
+                dev->input_name);
 
        err = rc_register_device(dev);
        if (err < 0) {
@@ -108,5 +109,5 @@ void sms_ir_exit(struct smscore_device_t *coredev)
 {
        rc_unregister_device(coredev->ir.dev);
 
-       sms_log("");
+       pr_debug("\n");
 }