V4L/DVB (11828): Reducing print-level of I2C error prints
authorMatthias Schwarzott <zzam@gentoo.org>
Wed, 20 May 2009 07:57:10 +0000 (04:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:21:09 +0000 (18:21 -0300)
Reducing the print-levle of I2C error prints cleans some unwanted but
unavoidable errors from default syslog-level.

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/b2c2/flexcop-i2c.c
drivers/media/dvb/frontends/mt312.c

index e2bed50..fd1df23 100644 (file)
@@ -200,7 +200,7 @@ static int flexcop_master_xfer(struct i2c_adapter *i2c_adap,
                                        msgs[i].buf[0], &msgs[i].buf[1],
                                        msgs[i].len - 1);
                if (ret < 0) {
-                       err("i2c master_xfer failed");
+                       deb_i2c("i2c master_xfer failed");
                        break;
                }
        }
index 5ac9b15..a621f72 100644 (file)
@@ -77,7 +77,7 @@ static int mt312_read(struct mt312_state *state, const enum mt312_reg_addr reg,
        ret = i2c_transfer(state->i2c, msg, 2);
 
        if (ret != 2) {
-               printk(KERN_ERR "%s: ret == %d\n", __func__, ret);
+               printk(KERN_DEBUG "%s: ret == %d\n", __func__, ret);
                return -EREMOTEIO;
        }