[media] bttv: avoid flooding the kernel log when i2c debugging is disabled
authorJohn Törnblom <john.tornblom@gmail.com>
Mon, 17 Dec 2012 11:53:54 +0000 (08:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 27 Dec 2012 20:24:16 +0000 (18:24 -0200)
commit1ca6ae8de8a563f69eebe114d023855b4f0bcb1b
treec351474e9df9ae9511ecf9dab8f5e1210d2192c1
parente19bc863f1f45223a85935f070177eda6b422f8f
[media] bttv: avoid flooding the kernel log when i2c debugging is disabled

When the bttv driver is running without i2c_debug being set, the kernel
log is being flooded with the string ">". This string is really a part of
a debug message that is logged using several substrings protected by a
conditional check.
This patch adds the same conditional check to the leaked substring.

Signed-off-by: John Törnblom <john.tornblom@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/pci/bt8xx/bttv-i2c.c