]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (12342): af9015: avoid magically sized temporary buffer in eeprom_dump
authorJan Nikitenko <jan.nikitenko@gmail.com>
Mon, 27 Jul 2009 22:05:19 +0000 (19:05 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 12 Sep 2009 15:18:13 +0000 (12:18 -0300)
commiteca85d18a3d378c1b40dd4b1cec32b133427ae9a
tree2573ec170d00e6075c783ec85da0f5293fc4bd65
parent99d75285367797698ca2f33528d944468231ee44
V4L/DVB (12342): af9015: avoid magically sized temporary buffer in eeprom_dump

Replace printing to magically sized temporary buffer with use
of KERN_CONT for continual printing of eeprom registers dump.

Since deb_info is defined as dprintk, which is conditionally defined
to printk without additional parameters, meaning that deb_info is equivalent
to direct printk (without adding KERN_ facility), we can use KERN_DEBUG and
KERN_CONT in there, eliminating the need for sprintf into temporary buffer
with not easily readable/magical size.

Though it's strange, that deb_info definition uses printk without KERN_
facility and callers don't use it either.

Signed-off-by: Jan Nikitenko <jan.nikitenko@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/af9015.c