Function name is hardcoded. replacing with __func__

Signed-off-by: Pushkar Jambhlekar <pushkar....@gmail.com>
---
 drivers/staging/media/cxd2099/cxd2099.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/media/cxd2099/cxd2099.c 
b/drivers/staging/media/cxd2099/cxd2099.c
index f28916e..c866752 100644
--- a/drivers/staging/media/cxd2099/cxd2099.c
+++ b/drivers/staging/media/cxd2099/cxd2099.c
@@ -100,7 +100,7 @@ static int i2c_read_reg(struct i2c_adapter *adapter, u8 adr,
                                   .buf = val, .len = 1} };
 
        if (i2c_transfer(adapter, msgs, 2) != 2) {
-               dev_err(&adapter->dev, "error in i2c_read_reg\n");
+               dev_err(&adapter->dev, "error in %s\n", __func__);
                return -1;
        }
        return 0;
@@ -115,7 +115,7 @@ static int i2c_read(struct i2c_adapter *adapter, u8 adr,
                                   .buf = data, .len = n} };
 
        if (i2c_transfer(adapter, msgs, 2) != 2) {
-               dev_err(&adapter->dev, "error in i2c_read\n");
+               dev_err(&adapter->dev, "error in %s\n",__func__);
                return -1;
        }
        return 0;
-- 
2.7.4

Reply via email to