diff options
author | Mats Randgaard <matrandg@cisco.com> | 2015-12-10 12:00:31 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-02-01 07:33:10 -0200 |
commit | 2874bf3ec453f50cfe1f7bf000efdadeb6f30db6 (patch) | |
tree | 467b79d98c3f6019ac10fd69f65d2bd8c7988d96 /drivers/media/i2c/tc358743.c | |
parent | 9637b03251dea31d99c0742932b9fcbfa015e5f0 (diff) | |
download | linux-2874bf3ec453f50cfe1f7bf000efdadeb6f30db6.tar.bz2 |
[media] tc358743: Print timings only when debug level is set
Prevent unnecessary kernel log spamming.
Signed-off-by: Mats Randgaard <matrandg@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/i2c/tc358743.c')
-rw-r--r-- | drivers/media/i2c/tc358743.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c index 3397eb99c67b..0325f7ed45d9 100644 --- a/drivers/media/i2c/tc358743.c +++ b/drivers/media/i2c/tc358743.c @@ -859,15 +859,16 @@ static void tc358743_format_change(struct v4l2_subdev *sd) if (tc358743_get_detected_timings(sd, &timings)) { enable_stream(sd, false); - v4l2_dbg(1, debug, sd, "%s: Format changed. No signal\n", + v4l2_dbg(1, debug, sd, "%s: No signal\n", __func__); } else { if (!v4l2_match_dv_timings(&state->timings, &timings, 0, false)) enable_stream(sd, false); - v4l2_print_dv_timings(sd->name, - "tc358743_format_change: Format changed. New format: ", - &timings, false); + if (debug) + v4l2_print_dv_timings(sd->name, + "tc358743_format_change: New format: ", + &timings, false); } if (sd->devnode) |