Browse Source

[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>
Mats Randgaard 9 years ago
parent
commit
2874bf3ec4
1 changed files with 5 additions and 4 deletions
  1. 5 4
      drivers/media/i2c/tc358743.c

+ 5 - 4
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)) {
 	if (tc358743_get_detected_timings(sd, &timings)) {
 		enable_stream(sd, false);
 		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__);
 				__func__);
 	} else {
 	} else {
 		if (!v4l2_match_dv_timings(&state->timings, &timings, 0, false))
 		if (!v4l2_match_dv_timings(&state->timings, &timings, 0, false))
 			enable_stream(sd, 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)
 	if (sd->devnode)