]> err.no Git - linux-2.6/commitdiff
V4L/DVB (4818): Flexcop-usb: fix debug printk
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 9 Nov 2006 20:36:44 +0000 (17:36 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 13 Nov 2006 10:17:30 +0000 (08:17 -0200)
.. fix debug printk. Why, oh why, one would want to do
(u16 & 0xff) << 8
and print it with %02x format?
Acked-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/b2c2/flexcop-usb.c

index 2853ea1bdaf1e7014e6cae070366e89c89ac30cd..87fb75f0d1cf0b88eb6e16706d8dfe3ffc3b7ebc 100644 (file)
@@ -246,7 +246,7 @@ static int flexcop_usb_i2c_req(struct flexcop_usb *fc_usb,
        wIndex = (chipaddr << 8 ) | addr;
 
        deb_i2c("i2c %2d: %02x %02x %02x %02x %02x %02x\n",func,request_type,req,
-                       ((wValue && 0xff) << 8),wValue >> 8,((wIndex && 0xff) << 8),wIndex >> 8);
+               wValue & 0xff, wValue >> 8, wIndex & 0xff, wIndex >> 8);
 
        len = usb_control_msg(fc_usb->udev,pipe,
                        req,